Skip to content

Commit 90d19bb

Browse files
authored
Merge pull request #5 from ararslan/aa/ci
Update CI setup and GitHub organization references
2 parents 0972061 + d1ea278 commit 90d19bb

File tree

7 files changed

+70
-75
lines changed

7 files changed

+70
-75
lines changed

.github/workflows/ci.yml

Lines changed: 44 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,32 +1,51 @@
1-
name: Unit Tests
2-
3-
# Controls when the action will run. Triggers the workflow on push or pull request
4-
# events but only for the master branch
5-
on:
6-
pull_request:
1+
name: Unit Tests
2+
on:
73
push:
4+
branches: [main]
5+
tags: ["*"]
6+
pull_request:
87
workflow_dispatch:
9-
8+
permissions:
9+
actions: write
10+
contents: read
1011
env:
12+
DATADEPS_ALWAYS_ACCEPT: 1
1113
JIVE_PROCS: 1
12-
1314
jobs:
14-
build:
15-
runs-on: ubuntu-20.04
16-
15+
test:
16+
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
17+
runs-on: ${{ matrix.os }}
18+
strategy:
19+
fail-fast: false
20+
matrix:
21+
version:
22+
- '1.6'
23+
- '1'
24+
- 'nightly'
25+
os:
26+
- ubuntu-latest
27+
arch:
28+
- x64
1729
steps:
18-
19-
- uses: actions/checkout@v2
20-
- uses: julia-actions/setup-julia@latest
30+
- uses: actions/checkout@v4
31+
- uses: julia-actions/setup-julia@v2
2132
with:
22-
version: 1.6
23-
24-
# Runs a single command using the runners shell
25-
- name: Unit Tests
26-
run: |
27-
julia --project -e 'using Pkg; Pkg.instantiate(); Pkg.build();'
28-
julia --project --check-bounds=yes --depwarn=yes -e 'import Pkg; Pkg.test(; coverage=true)'
29-
30-
- name: Codecov Upload
31-
run: |
32-
julia -e 'using Pkg; Pkg.add("Coverage"); using Coverage; Codecov.submit(process_folder());'
33+
version: ${{ matrix.version }}
34+
arch: ${{ matrix.arch }}
35+
- uses: julia-actions/cache@v1
36+
- uses: julia-actions/julia-buildpkg@v1
37+
- uses: julia-actions/julia-runtest@v1
38+
- uses: julia-actions/julia-processcoverage@v1
39+
- uses: codecov/codecov-action@v2
40+
with:
41+
file: lcov.info
42+
docs:
43+
name: Documentation
44+
runs-on: ubuntu-latest
45+
steps:
46+
- uses: actions/checkout@v4
47+
- uses: julia-actions/julia-buildpkg@latest
48+
- uses: julia-actions/julia-docdeploy@latest
49+
env:
50+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
51+
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}

.github/workflows/compathelper.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,18 @@ name: CompatHelper
22
on:
33
schedule:
44
- cron: '0 0 */7 * *'
5-
65
workflow_dispatch:
7-
6+
permissions:
7+
contents: write
8+
pull-requests: write
89
jobs:
910
CompatHelper:
1011
runs-on: ubuntu-latest
11-
1212
steps:
1313
- name: Pkg.add("CompatHelper")
1414
run: julia -e 'using Pkg; Pkg.add("CompatHelper")'
15-
1615
- name: CompatHelper.main()
1716
env:
1817
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1918
COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }}
20-
2119
run: julia -e 'using CompatHelper; CompatHelper.main()'

.github/workflows/deploy_docs.yml

Lines changed: 0 additions & 38 deletions
This file was deleted.

.github/workflows/tagbot.yml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,25 @@
11
name: TagBot
22
on:
3-
issue_comment: # THIS BIT IS NEW
3+
issue_comment:
44
types:
55
- created
66
workflow_dispatch:
7+
inputs:
8+
lookback:
9+
default: 3
10+
permissions:
11+
actions: read
12+
checks: read
13+
contents: write
14+
deployments: read
15+
issues: read
16+
discussions: read
17+
packages: read
18+
pages: read
19+
pull-requests: read
20+
repository-projects: read
21+
security-events: read
22+
statuses: read
723
jobs:
824
TagBot:
925
if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot'

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# DirectedAcyclicGraphs.jl
22

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

55
This package provides basic infrastructure to work with [Directed Acyclic Graphs](https://en.wikipedia.org/wiki/Directed_acyclic_graph) (DAGs) in Julia.
6-
It forms the foundation for packages such as [LogicCircuits](https://github.com/Juice-jl/LogicCircuits.jl) and [ProbabilisticCircuits](https://github.com/Juice-jl/ProbabilisticCircuits.jl), which define custom DAGs that represent logical or probabilistic computation graphs.
6+
It forms the foundation for packages such as [LogicCircuits](https://github.com/Tractables/LogicCircuits.jl) and [ProbabilisticCircuits](https://github.com/Tractables/ProbabilisticCircuits.jl), which define custom DAGs that represent logical or probabilistic computation graphs.
77

88
Functionality includes:
99
* applying `foreach` over the nodes of the DAG in topological or reverse topological order, linearize the DAG
@@ -15,4 +15,4 @@ Functionality includes:
1515
* arrange the DAG nodes in feedforward layers
1616
* collecting various statistics about the types of nodes and their in/out-degree
1717

18-
For example usage, please see the unit tests for [DAGs](https://github.com/Juice-jl/DirectedAcyclicGraphs.jl/blob/main/test/dags_test.jl) and the special case of [trees](https://github.com/Juice-jl/DirectedAcyclicGraphs.jl/blob/main/test/trees_test.jl), or the source code of the dependent packages. A brief description of functions can be found in the [![](https://img.shields.io/badge/docs-dev-blue.svg)](https://juice-jl.github.io/DirectedAcyclicGraphs.jl/dev/).
18+
For example usage, please see the unit tests for [DAGs](https://github.com/Tractables/DirectedAcyclicGraphs.jl/blob/main/test/dags_test.jl) and the special case of [trees](https://github.com/Tractables/DirectedAcyclicGraphs.jl/blob/main/test/trees_test.jl), or the source code of the dependent packages. A brief description of functions can be found in the [![](https://img.shields.io/badge/docs-dev-blue.svg)](https://Tractables.github.io/DirectedAcyclicGraphs.jl/dev/).

docs/make.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ pages = [
1414

1515
format = Documenter.HTML(
1616
prettyurls = !("local" in ARGS),
17-
canonical = "https://juice-jl.github.io/DirectedAcyclicGraphs.jl/stable/",
17+
canonical = "https://tractables.github.io/DirectedAcyclicGraphs.jl/stable/",
1818
assets = ["assets/favicon.ico"],
1919
analytics = "UA-136089579-2",
2020
highlights = ["yaml"],
@@ -39,7 +39,7 @@ makedocs(
3939
# for more information.
4040
deploydocs(
4141
target = "build",
42-
repo = "github.com/Juice-jl/DirectedAcyclicGraphs.jl.git",
42+
repo = "github.com/Tractables/DirectedAcyclicGraphs.jl.git",
4343
branch = "gh-pages",
4444
devbranch = "main",
4545
devurl = "dev",

docs/src/installation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ julia -e 'using Pkg; Pkg.add("DirectedAcyclicGraphs")'
1717
To install the package with the latest commits on master branch, run:
1818

1919
```bash
20-
julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/Juice-jl/DirectedAcyclicGraphs.jl.git"))'
20+
julia -e 'using Pkg; Pkg.add(PackageSpec(url="https://github.com/Tractables/DirectedAcyclicGraphs.jl.git"))'
2121
```
2222

2323
#### From Julia Pkg REPL

0 commit comments

Comments
 (0)