Skip to content

Commit 22051fd

Browse files
authored
Update CI workflows (#18)
* Update CI workflows * Use StableRNG for random seeds in tests for consistency across Julia versions. This requires updating test references.
1 parent 6679139 commit 22051fd

File tree

90 files changed

+53
-42
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

90 files changed

+53
-42
lines changed

.github/workflows/CI.yml

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -11,56 +11,61 @@ concurrency:
1111
# Cancel intermediate builds: only if it is a pull request build.
1212
group: ${{ github.workflow }}-${{ github.ref }}
1313
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
14+
1415
jobs:
16+
1517
test:
16-
name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }}
17-
runs-on: ${{ matrix.os }}
18+
name: Julia ${{ matrix.version }}
19+
runs-on: ubuntu-latest
1820
strategy:
1921
fail-fast: false
2022
matrix:
2123
version:
22-
- '1.6'
24+
- 'lts'
2325
- '1'
24-
- 'nightly'
25-
os:
26-
- ubuntu-latest
27-
arch:
28-
- x64
26+
- 'pre'
2927
steps:
3028
- uses: actions/checkout@v4
31-
- uses: julia-actions/setup-julia@v1
29+
- uses: julia-actions/setup-julia@v2
3230
with:
3331
version: ${{ matrix.version }}
34-
arch: ${{ matrix.arch }}
35-
- uses: julia-actions/cache@v1
32+
- uses: julia-actions/cache@v2
3633
- uses: julia-actions/julia-buildpkg@v1
37-
continue-on-error: ${{ matrix.version == 'nightly' }}
3834
- uses: julia-actions/julia-runtest@v1
39-
continue-on-error: ${{ matrix.version == 'nightly' }}
4035
- uses: julia-actions/julia-processcoverage@v1
41-
- uses: codecov/codecov-action@v3
36+
with:
37+
directories: src,test
38+
- uses: codecov/codecov-action@v4
4239
with:
4340
files: lcov.info
41+
token: ${{ secrets.CODECOV_TOKEN }}
42+
slug: Julia-XAI/ExplainableAI.jl
43+
4444
docs:
4545
name: Documentation
4646
runs-on: ubuntu-latest
4747
steps:
4848
- uses: actions/checkout@v4
49-
- uses: julia-actions/setup-julia@v1
49+
- uses: julia-actions/setup-julia@v2
5050
with:
5151
version: '1'
52-
- run: |
53-
julia --project=docs -e '
54-
using Pkg
55-
Pkg.develop(PackageSpec(path=pwd()))
56-
Pkg.instantiate()'
57-
- run: |
58-
julia --project=docs -e '
59-
using Documenter: doctest
60-
using RelevancePropagation
61-
doctest(RelevancePropagation)'
62-
- run: julia --project=docs docs/make.jl
52+
- uses: julia-actions/cache@v2
53+
- name: Configure doc environment
54+
shell: julia --project=docs --color=yes {0}
55+
run: |
56+
using Pkg
57+
Pkg.Registry.update()
58+
Pkg.develop(PackageSpec(path=pwd()))
59+
Pkg.instantiate()
60+
- uses: julia-actions/julia-buildpkg@v1
61+
- uses: julia-actions/julia-docdeploy@v1
6362
env:
6463
DATADEPS_ALWAYS_ACCEPT: true # for MLDatasets download
6564
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
6665
DOCUMENTER_KEY: ${{ secrets.DOCUMENTER_KEY }}
66+
- name: Run doctests
67+
run: |
68+
julia --project=docs --color=yes -e '
69+
using Documenter: doctest
70+
using RelevancePropagation
71+
doctest(RelevancePropagation)'

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "RelevancePropagation"
22
uuid = "0be6dd02-ae9e-43eb-b318-c6e81d6890d8"
33
authors = ["Adrian Hill <[email protected]>"]
4-
version = "2.0.2"
4+
version = "2.0.3-DEV"
55

66
[deps]
77
Flux = "587475ba-b771-5e3f-ad9e-33799f191a9c"

test/Project.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ Metalhead = "dbeba491-748d-5e0e-a39e-b530a07fa0cc"
88
NNlib = "872c559c-99b0-510c-b3b7-b6c96a88d5cd"
99
Random = "9a3f8284-a2c9-5f02-9a11-845980a1fd5c"
1010
ReferenceTests = "324d217c-45ce-50fc-942e-d289b448e8cf"
11+
StableRNGs = "860ef19b-820b-49d6-a774-d7a799459cd3"
1112
Suppressor = "fd094767-a336-5f1f-9728-57cf17d0bbfb"
1213
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"
1314
XAIBase = "9b48221d-a747-4c1b-9860-46a1d8ba24a7"

test/references/cnn/CRP_max.jld2

25 Bytes
Binary file not shown.

test/references/cnn/CRP_ns1.jld2

25 Bytes
Binary file not shown.
25 Bytes
Binary file not shown.
25 Bytes
Binary file not shown.
25 Bytes
Binary file not shown.
25 Bytes
Binary file not shown.
25 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)