@@ -24,11 +24,15 @@ jobs:
24
24
test :
25
25
name : ${{ matrix.suite }} - Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
26
26
runs-on : ${{ matrix.os }}
27
+ env :
28
+ GROUP : ${{ matrix.suite }}
29
+ TEST_FAST : ${{ matrix.version != '1' || matrix.os != 'ubuntu-latest' }}
27
30
strategy :
28
31
fail-fast : false
29
32
matrix :
30
33
version :
31
- - ' 1' # Replace this with the minimum Julia version that your package supports.
34
+ - ' 1.6' # Replace this with the minimum Julia version that your package supports.
35
+ - ' 1'
32
36
- ' nightly'
33
37
os :
34
38
- ubuntu-latest
@@ -37,18 +41,19 @@ jobs:
37
41
arch :
38
42
- x64
39
43
suite :
40
- - ' ["AlexNet", "VGG"]'
41
- - ' ["GoogLeNet", "SqueezeNet", "MobileNets"]'
42
- - ' "EfficientNet"'
43
- - ' r"/*/ResNet*"'
44
- - ' r"/*/SEResNet*"'
45
- - ' [r"Res2Net", r"Res2NeXt"]'
46
- - ' "Inception"'
47
- - ' "DenseNet"'
48
- - ' "UNet"'
49
- - ' ["ConvNeXt", "ConvMixer"]'
50
- - ' r"Mixers"'
51
- - ' r"ViTs"'
44
+ - ' AlexNet|VGG'
45
+ - ' GoogLeNet|SqueezeNet|MobileNet|MNASNet'
46
+ - ' EfficientNet'
47
+ - ' ^ResNet|WideResNet'
48
+ - ' ^ResNeXt' # split off from ResNet to reduce overall runtime
49
+ - ' SEResNet|SEResNeXt'
50
+ - ' Res2Net|Res2NeXt'
51
+ - ' Inception'
52
+ - ' DenseNet'
53
+ - ' UNet'
54
+ - ' ConvNeXt|ConvMixer'
55
+ - ' MLP-Mixer|ResMLP|gMLP'
56
+ - ' ViT'
52
57
steps :
53
58
- uses : actions/checkout@v3
54
59
- uses : julia-actions/setup-julia@v1
@@ -57,28 +62,24 @@ jobs:
57
62
arch : ${{ matrix.arch }}
58
63
- uses : julia-actions/cache@v1
59
64
- uses : julia-actions/julia-buildpkg@v1
60
- - name : " Setup environment"
61
- run : |
62
- julia --project=./test -e 'using Pkg; Pkg.develop(path = ".")'
63
- - name : " Run tests + coverage"
64
- if : matrix.version == '1' && matrix.os == 'ubuntu-latest'
65
- run : |
66
- julia --code-coverage=user --color=yes --depwarn=yes --project=./test -e 'include("test/retest.jl"); retest(${{ matrix.suite }})'
67
- shell : bash
68
- - name : " Run tests only"
69
- if : ${{ !(matrix.version == '1' && matrix.os == 'ubuntu-latest') }}
65
+
66
+ - name : Setup test env for 1.6
67
+ if : ${{ matrix.version == '1.6' }}
70
68
run : |
71
- julia --color=yes --depwarn=yes --project=./test -e 'include("test/retest.jl"); retest(${{ matrix.suite }})'
72
- continue-on-error : ${{ matrix.version == 'nightly' }}
73
- shell : bash
69
+ julia --color=yes --depwarn=yes --project=./test -e 'using Pkg; Pkg.rm("ReTestItems")'
70
+ - name : Run tests
71
+ uses : julia-actions/julia-runtest@v1
72
+ continue-on-error : ${{ !(matrix.version == '1' && matrix.os == 'ubuntu-latest') && matrix.version == 'nightly' }}
73
+ with :
74
+ coverage : ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' }}
74
75
- uses : actions/upload-artifact@v3
75
76
with :
76
77
name : coverage-${{ hashFiles('**/*.cov') }}
77
78
path : ' **/*.cov'
78
79
if : matrix.version == '1' && matrix.os == 'ubuntu-latest'
79
80
80
81
coverage :
81
- name : " Coverage"
82
+ name : Coverage
82
83
runs-on : ubuntu-latest
83
84
needs : test
84
85
steps :
94
95
cp -r coverage-*/* .
95
96
rm -rf coverage-*
96
97
- uses : julia-actions/julia-processcoverage@v1
97
- - uses : codecov/codecov-action@v2
98
+ - uses : codecov/codecov-action@v3
98
99
with :
99
100
file : lcov.info
100
101
0 commit comments