Skip to content

Commit

Permalink
Merge pull request #21 from Tractables/migration
Browse files Browse the repository at this point in the history
Migration to Tractables
  • Loading branch information
khosravipasha authored Jun 8, 2024
2 parents d7ca756 + 87ed79b commit a254e2d
Show file tree
Hide file tree
Showing 6 changed files with 63 additions and 35 deletions.
59 changes: 34 additions & 25 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,32 +1,41 @@
name: Unit Tests

# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the master branch
on:
pull_request:
name: Unit Tests
on:
push:
branches: [master]
tags: ["*"]
pull_request:
workflow_dispatch:

permissions:
actions: write
contents: read
env:
DATADEPS_ALWAYS_ACCEPT: 1
JIVE_PROCS: 1

jobs:
build:
runs-on: ubuntu-20.04

test:
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
version:
- '1.6'
- '1'
- 'nightly'
os:
- ubuntu-latest
arch:
- x64
steps:

- uses: actions/checkout@v2
- uses: julia-actions/setup-julia@latest
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v1
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v2
with:
version: 1.6

# Runs a single command using the runners shell
- name: Unit Tests
run: |
julia --project -e 'using Pkg; Pkg.instantiate(); Pkg.build();'
julia --threads 2 --project --check-bounds=yes --depwarn=yes -e 'import Pkg; Pkg.test(; coverage=true)'
- name: Codecov Upload
run: |
julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder());'
file: lcov.info
13 changes: 8 additions & 5 deletions .github/workflows/compathelper.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,23 @@ name: CompatHelper
on:
schedule:
- cron: '0 0 */7 * *'

workflow_dispatch:


permissions:
contents: write
pull-requests: write

jobs:
CompatHelper:
runs-on: ubuntu-latest

steps:
- name: Pkg.add("CompatHelper")
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'

- name: CompatHelper.main()
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}

run: julia -e 'using CompatHelper; CompatHelper.main()'
18 changes: 17 additions & 1 deletion .github/workflows/tagbot.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,25 @@
name: TagBot
on:
issue_comment: # THIS BIT IS NEW
issue_comment:
types:
- created
workflow_dispatch:
inputs:
lookback:
default: 3
permissions:
actions: read
checks: read
contents: write
deployments: read
issues: read
discussions: read
packages: read
pages: read
pull-requests: read
repository-projects: read
security-events: read
statuses: read
jobs:
TagBot:
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'
Expand Down
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
name = "ChowLiuTrees"
uuid = "be466665-d60c-4e0a-9ae9-070eb5e678a5"
authors = ["Guy Van den Broeck <guyvdb@cs.ucla.edu>"]
version = "0.1.4"
version = "0.2.0"

[deps]
CUDA = "052768ef-5323-5732-b1bb-66c8b64840ba"
DataStructures = "864edb3b-99cc-5e75-8d2d-829cb0a9cfe8"
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"

[compat]
CUDA = "3, 4"
CUDA = "3, 4, 5"
DataStructures = "0.17, 0.18"
julia = "1.6"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# ChowLiuTrees.jl

[![Unit Tests](https://github.com/Juice-jl/ChowLiuTrees.jl/workflows/Unit%20Tests/badge.svg)](https://github.com/Juice-jl/ChowLiuTrees.jl/actions?query=workflow%3A%22Unit+Tests%22+branch%3Amain) [![codecov](https://codecov.io/gh/Juice-jl/ChowLiuTrees.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/Juice-jl/ChowLiuTrees.jl)
[![Unit Tests](https://github.com/Tractables/ChowLiuTrees.jl/workflows/Unit%20Tests/badge.svg)](https://github.com/Tractables/ChowLiuTrees.jl/actions?query=workflow%3A%22Unit+Tests%22+branch%3Amain) [![codecov](https://codecov.io/gh/Tractables/ChowLiuTrees.jl/branch/main/graph/badge.svg)](https://codecov.io/gh/Tractables/ChowLiuTrees.jl)

This package provides an efficient implementation for learning [Chow-Liu Trees](https://en.wikipedia.org/wiki/Chow%E2%80%93Liu_tree) from binary and categorical data.

Expand Down
2 changes: 1 addition & 1 deletion test/Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Jive = "ba5e3d4b-8524-549f-bc71-e76ad9e9deed"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[compat]
CUDA = "3"
CUDA = "3, 5"
Jive = "0.2"

0 comments on commit a254e2d

Please sign in to comment.