12
12
runs-on : ubuntu-latest
13
13
steps :
14
14
- uses : actions/checkout@v4
15
- - uses : julia-actions/setup-julia@v1
15
+
16
+ - name : Setup Miniforge Python 3.9
17
+ uses : conda-incubator/setup-miniconda@v3
16
18
with :
17
- version : ' 1.10'
19
+ miniforge-variant : Miniforge3
20
+ miniforge-version : latest
21
+ python-version : " 3.9"
22
+ activate-environment : rms_env
23
+ auto-update-conda : true
24
+ show-channel-urls : true
25
+ conda-remove-defaults : " true"
26
+
27
+ - name : Setup Juliaup
28
+ uses : julia-actions/install-juliaup@v2
29
+ with :
30
+ channel : ' 1.9'
31
+
18
32
- uses : actions/cache@v1
19
33
env :
20
34
cache-name : cache-artifacts
@@ -25,18 +39,25 @@ jobs:
25
39
${{ runner.os }}-test-${{ env.cache-name }}-
26
40
${{ runner.os }}-test-
27
41
${{ runner.os }}-
42
+
43
+ - name : Set some env vars
44
+ run : |
45
+ # https://juliapy.github.io/PythonCall.jl/stable/pythoncall/#If-you-already-have-Python-and-required-Python-packages-installed
46
+ echo "JULIA_CONDAPKG_BACKEND=Current" >> $GITHUB_ENV
47
+ echo "JULIA_PYTHONCALL_EXE=$CONDA_PREFIX/bin/python" >> $GITHUB_ENV
48
+
28
49
- uses : julia-actions/julia-buildpkg@v1
50
+
29
51
- name : Build
30
52
run : |
31
- current_path=${{ github.workspace }}
32
- export JULIA_CONDAPKG_ENV="$current_path/rms_env"
33
53
julia -e 'using Pkg; Pkg.develop(Pkg.PackageSpec(path="../ReactionMechanismSimulator.jl/")); Pkg.build("ReactionMechanismSimulator");'
54
+
34
55
- name : Run tests
35
56
run : |
36
- current_path=${{ github.workspace }}
37
- export JULIA_CONDAPKG_ENV="$current_path/rms_env"
38
57
julia -e 'using Pkg; Pkg.test("ReactionMechanismSimulator"; coverage=true)'
58
+
39
59
- uses : julia-actions/julia-processcoverage@v1
60
+
40
61
- uses : codecov/codecov-action@v1
41
62
with :
42
63
file : lcov.info
0 commit comments