-
Notifications
You must be signed in to change notification settings - Fork 13
87 lines (84 loc) · 2.69 KB
/
Test.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
name: Test
on:
push:
branches:
- main
tags: ["*"]
pull_request:
types: [opened, reopened, synchronize, ready_for_review]
workflow_dispatch:
concurrency:
# Skip intermediate builds: always.
# Cancel intermediate builds: only if it is a pull request build.
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }}
jobs:
test-DI:
name: ${{ matrix.version }} - DI (${{ matrix.group }})
runs-on: ubuntu-latest
if: ${{ !contains(github.event.pull_request.labels.*.name, 'skipci') }}
timeout-minutes: 60
permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created
actions: write
contents: read
strategy:
fail-fast: false # TODO: toggle
matrix:
version:
# - "1.10"
- "1"
group:
# - Misc/Internals
# - Misc/DifferentiateWith
# - Misc/FromPrimitive
# - Misc/SparsityDetector
# - Misc/ZeroBackends
# - Back/ChainRulesBackends
- Back/Enzyme
# - Back/FiniteDiff
# - Back/FiniteDifferences
# - Back/ForwardDiff
# - Back/Mooncake
# - Back/PolyesterForwardDiff
# - Back/ReverseDiff
# - Back/SymbolicBackends
# - Back/Tracker
# - Back/Zygote
# - Down/Flux
# - Down/Lux
skip_lts:
- ${{ github.event.pull_request.draft }}
exclude:
# - skip_lts: true
# version: "1.10"
- version: "1"
group: Back/ChainRulesBackends
# - version: "1"
# group: Back/Enzyme
- version: "1"
group: Back/Mooncake
env:
JULIA_DI_TEST_GROUP: ${{ matrix.group }}
steps:
- uses: actions/checkout@v4
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: x64
- uses: julia-actions/cache@v2
- name: Install dependencies & run tests
# how to add the local DIT to the DI test env?
run: julia --project=./DifferentiationInterface -e '
using Pkg;
Pkg.Registry.update();
Pkg.test("DifferentiationInterface"; coverage=true);'
- uses: julia-actions/julia-processcoverage@v1
with:
directories: ./DifferentiationInterface/src,./DifferentiationInterface/ext,./DifferentiationInterface/test
- uses: codecov/codecov-action@v4
with:
files: lcov.info
flags: DI
name: ${{ matrix.version }} - DI (${{ matrix.group }})
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: true