@@ -14,68 +14,68 @@ concurrency:
14
14
15
15
jobs :
16
16
test :
17
- name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ (matrix.python && 'system Python') || 'conda' }}
17
+ name : Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }}
18
18
runs-on : ${{ matrix.os }}
19
+ env :
20
+ PYTHON : ' ' # always use Conda.jl, even on Linux where `python`/`python3` is in the PATH
19
21
strategy :
20
22
fail-fast : false
21
23
matrix :
22
24
version :
23
- - ' 1.8'
25
+ - ' 1.0'
26
+ - ' 1.6'
24
27
- ' 1'
25
28
os :
26
29
- ubuntu-latest
27
30
- macOS-latest
28
31
- windows-latest
29
32
arch :
30
33
- x64
31
- python :
32
- - ' '
33
- - python
34
- include :
35
- - version : ' 1'
36
- os : ubuntu-latest
34
+ exclude :
35
+ # Conda installation fails: https://github.com/JuliaPy/Conda.jl/issues/230
36
+ - version : ' 1.0'
37
+ os : windows-latest
37
38
arch : x64
38
- coverage : true
39
39
steps :
40
40
- uses : actions/checkout@v2
41
- - name : Install python
42
- uses : actions/setup-python@v2
43
- with :
44
- python-version : ' 3.x'
45
- architecture : ${{ matrix.arch }}
46
- if : matrix.python
47
- - run : python -m pip install pot
48
- if : matrix.python
49
41
- uses : julia-actions/setup-julia@v1
50
42
with :
51
43
version : ${{ matrix.version }}
52
44
arch : ${{ matrix.arch }}
53
- - uses : actions/cache@v1
54
- env :
55
- cache-name : cache-artifacts
45
+ - uses : julia-actions/cache@v1
56
46
with :
57
- path : ~/.julia/artifacts
58
- key : ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }}
59
- restore-keys : |
60
- ${{ runner.os }}-test-${{ env.cache-name }}-
61
- ${{ runner.os }}-test-
62
- ${{ runner.os }}-
47
+ cache-packages : " false" # Weird interaction with PyCall settings?
63
48
- uses : julia-actions/julia-buildpkg@v1
64
- env :
65
- PYTHON : ${{ matrix.python }}
49
+ - name : Install POT
50
+ run : |
51
+ using PyCall: Conda
52
+ Conda.add("nomkl") # Work around https://github.com/JuliaPy/PyPlot.jl/issues/315
53
+ Conda.add("pot"; channel="conda-forge")
54
+
55
+ # Workaround for https://github.com/JuliaPy/PyCall.jl/issues/999: Use conda's version of the library
56
+ if !Sys.iswindows()
57
+ open(ENV["GITHUB_ENV"], "a") do io
58
+ println(io, "LD_PRELOAD=", joinpath(Conda.ROOTENV, "lib", "libstdc++.so.6"))
59
+ end
60
+ end
61
+ shell : julia --project=. --color=yes {0}
66
62
- uses : julia-actions/julia-runtest@v1
67
- with :
68
- coverage : ${{ matrix.coverage || false }}
69
- env :
70
- PYTHON : ${{ matrix.python }}
71
63
- uses : julia-actions/julia-processcoverage@v1
72
- if : matrix.coverage
73
64
- uses : codecov/codecov-action@v2
74
- if : matrix.coverage
75
65
with :
76
- file : lcov.info
66
+ files : lcov.info
77
67
- uses : coverallsapp/github-action@master
78
- if : matrix.coverage
79
68
with :
80
- github-token : ${{ secrets.GITHUB_TOKEN }}
81
- path-to-lcov : ./lcov.info
69
+ github-token : ${{ secrets.GITHUB_TOKEN }}
70
+ path-to-lcov : ./lcov.info
71
+ flag-name : run-${{ matrix.version }}
72
+ parallel : true
73
+ finish :
74
+ needs : test
75
+ runs-on : ubuntu-latest
76
+ steps :
77
+ - name : Coveralls Finished
78
+ uses : coverallsapp/github-action@master
79
+ with :
80
+ github-token : ${{ secrets.github_token }}
81
+ parallel-finished : true
0 commit comments