6
6
- master
7
7
pull_request :
8
8
9
+ concurrency :
10
+ # Skip intermediate builds: always.
11
+ # Cancel intermediate builds: only if it is a pull request build.
12
+ group : ${{ github.workflow }}-${{ github.ref }}
13
+ cancel-in-progress : ${{ startsWith(github.ref, 'refs/pull/') }}
14
+
9
15
jobs :
10
16
test :
11
17
name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
@@ -22,20 +28,13 @@ jobs:
22
28
- windows-latest
23
29
arch :
24
30
- x64
25
- include :
26
- - version : ' 1'
27
- os : ubuntu-latest
28
- arch : x64
29
- coverage : true
30
31
steps :
31
32
- uses : actions/checkout@v2
32
33
- name : Install python
33
34
uses : actions/setup-python@v2
34
35
with :
35
36
python-version : ' 3.9'
36
37
architecture : ${{ matrix.arch }}
37
- # Limitation of pip: https://pythonot.github.io/index.html#pip-installation
38
- - run : python -m pip install cython numpy
39
38
- run : python -m pip install pot
40
39
- uses : julia-actions/setup-julia@v1
41
40
with :
@@ -54,18 +53,18 @@ jobs:
54
53
- uses : julia-actions/julia-buildpkg@latest
55
54
- uses : julia-actions/julia-runtest@latest
56
55
with :
57
- coverage : ${{ matrix.coverage || false }}
56
+ coverage : ${{ matrix.version == '1' && matrix.os == 'ubuntu-latest' }}
58
57
env :
59
58
PYTHON : python
60
59
GROUP : OptimalTransport
61
60
- uses : julia-actions/julia-processcoverage@v1
62
- if : matrix.coverage
63
- - uses : codecov/codecov-action@v1
64
- if : matrix.coverage
61
+ if : matrix.version == '1' && matrix.os == 'ubuntu-latest'
62
+ - uses : codecov/codecov-action@v2
63
+ if : matrix.version == '1' && matrix.os == 'ubuntu-latest'
65
64
with :
66
65
file : lcov.info
67
66
- uses : coverallsapp/github-action@master
68
- if : matrix.coverage
67
+ if : matrix.version == '1' && matrix.os == 'ubuntu-latest'
69
68
with :
70
69
github-token : ${{ secrets.GITHUB_TOKEN }}
71
70
path-to-lcov : lcov.info
0 commit comments