Skip to content

Commit 56fbe5e

Browse files
committed
port sucessful CI changes from rmg to rms
1 parent 93845bf commit 56fbe5e

File tree

1 file changed

+27
-6
lines changed

1 file changed

+27
-6
lines changed

.github/workflows/CI.yml

Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,23 @@ jobs:
1212
runs-on: ubuntu-latest
1313
steps:
1414
- 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
1618
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+
1832
- uses: actions/cache@v1
1933
env:
2034
cache-name: cache-artifacts
@@ -25,18 +39,25 @@ jobs:
2539
${{ runner.os }}-test-${{ env.cache-name }}-
2640
${{ runner.os }}-test-
2741
${{ 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+
2849
- uses: julia-actions/julia-buildpkg@v1
50+
2951
- name: Build
3052
run: |
31-
current_path=${{ github.workspace }}
32-
export JULIA_CONDAPKG_ENV="$current_path/rms_env"
3353
julia -e 'using Pkg; Pkg.develop(Pkg.PackageSpec(path="../ReactionMechanismSimulator.jl/")); Pkg.build("ReactionMechanismSimulator");'
54+
3455
- name: Run tests
3556
run: |
36-
current_path=${{ github.workspace }}
37-
export JULIA_CONDAPKG_ENV="$current_path/rms_env"
3857
julia -e 'using Pkg; Pkg.test("ReactionMechanismSimulator"; coverage=true)'
58+
3959
- uses: julia-actions/julia-processcoverage@v1
60+
4061
- uses: codecov/codecov-action@v1
4162
with:
4263
file: lcov.info

0 commit comments

Comments
 (0)