Skip to content

Commit 9909e27

Browse files
🔄 synced local '.github/workflows/CI.yml' with remote '.github/workflows/CI.yml'
1 parent 1dbbcc1 commit 9909e27

File tree

1 file changed

+19
-34
lines changed

1 file changed

+19
-34
lines changed

.github/workflows/CI.yml

Lines changed: 19 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -22,64 +22,49 @@ jobs:
2222
fail-fast: false
2323
matrix:
2424
version:
25-
- '1.9'
26-
python: [3.9]
27-
os:
28-
- ubuntu-latest
25+
- '1.10'
26+
python:
27+
- '3.10'
28+
os: [ubuntu-latest, macos-latest]
2929
arch:
3030
- x64
3131
steps:
32-
- uses: actions/checkout@v2
32+
# Cancel ongoing CI test runs if pushing to branch again before the previous tests
33+
# have finished
34+
- name: Cancel ongoing test runs for previous commits
35+
uses: styfle/cancel-workflow-action@0.12.1
36+
with:
37+
access_token: ${{ github.token }}
38+
# Do tests
39+
- uses: actions/checkout@v4
3340
- name: Set up Python 🐍 ${{ matrix.python }}
3441
uses: actions/setup-python@v2
3542
with:
3643
python-version: ${{ matrix.python }}
37-
- name: Create environment with micromamba 🐍🖤
38-
uses: mamba-org/setup-micromamba@v1
39-
with:
40-
micromamba-version: '1.5.6-0'
41-
environment-file: ./environment.yml
42-
environment-name: oggm_env # it is recommendable to add both name and yml file.
43-
init-shell: bash
44-
cache-environment: true
45-
# condarc-file: ./condarc.yml # If necessary, we can include .condarc to configure environment
46-
- name: Test creation of environment with micromamba 🔧🐍🖤
47-
run: |
48-
which python
49-
conda env export
50-
shell: bash -el {0}
5144
- name: Update certifi
5245
run: |
5346
pip install --upgrade certifi
5447
shell: bash -el {0}
55-
# - name: Test OGGM installation 🔧🌎
56-
# run: pytest.oggm
57-
# shell: bash -el {0}
58-
- name: Set ENV Variables for PyCall.jl 🐍 📞
59-
run: export PYTHON=/home/runner/micromamba/envs/oggm_env/bin/python
60-
shell: bash -el {0}
61-
- uses: julia-actions/setup-julia@v1
48+
- uses: julia-actions/setup-julia@latest
6249
with:
6350
version: ${{ matrix.version }}
6451
arch: ${{ matrix.arch }}
6552
- name: Check Julia SSL certifications 🔎🔐
6653
run: julia -e 'using NetworkOptions; println(NetworkOptions.bundled_ca_roots()); println(NetworkOptions.ca_roots())'
6754
shell: bash -el {0}
68-
- uses: julia-actions/cache@v1
55+
- uses: julia-actions/cache@v2
6956
with:
7057
cache-registries: "true"
7158
cache-compiled: "true"
7259
- uses: julia-actions/julia-buildpkg@v1
7360
env:
74-
PYTHON : /home/runner/micromamba/envs/oggm_env/bin/python
75-
# The SSL certificate path can be readed from the action "Check Julia SSL certifications"
76-
SSL_CERT_FILE: /etc/ssl/certs/ca-certificates.crt
77-
- uses: julia-actions/julia-runtest@v1
61+
# The SSL certificate path can be read from the action "Check Julia SSL certifications"
62+
JULIA_SSL_CA_ROOTS_PATH: ""
63+
- uses: julia-actions/julia-runtest@latest
7864
env:
79-
PYTHON : /home/runner/micromamba/envs/oggm_env/bin/python
80-
SSL_CERT_FILE: /etc/ssl/certs/ca-certificates.crt
65+
JULIA_SSL_CA_ROOTS_PATH: ""
8166
- uses: julia-actions/julia-processcoverage@v1
82-
- uses: codecov/codecov-action@v3
67+
- uses: codecov/codecov-action@v4
8368
with:
8469
token: ${{secrets.CODECOV_TOKEN}}
8570
files: lcov.info

0 commit comments

Comments
 (0)