-
Notifications
You must be signed in to change notification settings - Fork 23
62 lines (49 loc) · 1.56 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
name: CI
on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
test:
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]
include:
- os: self-hosted
tests: ["basics", "layers", "networks"]
version: '1.10'
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