-
Notifications
You must be signed in to change notification settings - Fork 23
104 lines (80 loc) · 2.71 KB
/
runtests.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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test_cpu:
name: Julia ${{ matrix.version }} - ${{ matrix.tests }} - ${{ matrix.os }}
runs-on: ${{ matrix.os }}
env:
test_suite: ${{ matrix.tests }}
strategy:
fail-fast: false
matrix:
version: ['1.6', '1.7', '1.8', '1.9', '1.10']
tests: ["basics", "layers", "networks"]
os: [ubuntu-latest]
steps:
- name: Checkout InvertibleNetworks.jl
uses: actions/checkout@v3
- name: Setup julia
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
- name: Add SLIM registery for JOLI
run: |
julia --color=yes --check-bounds=yes -e 'using Pkg;Pkg.update();Pkg.Registry.add(RegistrySpec(url="https://github.com/slimgroup/SLIMregistryJL.git"))'
- name: Build InvertibleNetworks.jl
uses: julia-actions/julia-buildpkg@latest
- name: Run tests
id: test
continue-on-error: true
uses: julia-actions/julia-runtest@latest
- name: Retry tests once if failed
if: steps.test.outcome=='failure'
uses: julia-actions/julia-runtest@latest
- name: Run simple example
run: julia --project examples/layers/layer_actnorm.jl
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info
test_gpu:
name: GPU Julia ${{ matrix.version }} - ${{ matrix.tests }}
runs-on: self-hosted
env:
test_suite: ${{ matrix.tests }}
strategy:
fail-fast: false
matrix:
version: ['1.10']
tests: ["basics", "layers", "networks"]
steps:
- name: Checkout InvertibleNetworks.jl
uses: actions/checkout@v3
- name: Setup julia
uses: julia-actions/setup-julia@v1
with:
version: ${{ matrix.version }}
- name: Add SLIM registery for JOLI
run: |
julia --color=yes --check-bounds=yes -e 'using Pkg;Pkg.update();Pkg.Registry.add(RegistrySpec(url="https://github.com/slimgroup/SLIMregistryJL.git"))'
- name: Build InvertibleNetworks.jl
uses: julia-actions/julia-buildpkg@latest
- name: Run tests
id: test
continue-on-error: true
uses: julia-actions/julia-runtest@latest
- name: Retry tests once if failed
if: steps.test.outcome=='failure'
uses: julia-actions/julia-runtest@latest
- name: Run simple example
run: julia --project examples/layers/layer_actnorm.jl
- uses: julia-actions/julia-processcoverage@v1
- uses: codecov/codecov-action@v1
with:
file: lcov.info