Skip to content

Commit 02a3935

Browse files
committed
CI: Use conda-incubator/setup-miniconda
1 parent 37fdee0 commit 02a3935

File tree

2 files changed

+6
-13
lines changed

2 files changed

+6
-13
lines changed

.github/workflows/ci_np2.yml

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -13,26 +13,18 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v4
16-
- name: Set up Python
17-
uses: actions/setup-python@v5
16+
- uses: conda-incubator/setup-miniconda@v3
1817
with:
18+
auto-update-conda: true
19+
environment-file: environment_np2.yml
1920
python-version: '3.13'
20-
allow-prereleases: true
21-
- name: Add conda to system path
22-
run: |
23-
# $CONDA is an environment variable pointing to the root of the miniconda directory
24-
echo $CONDA/bin >> $GITHUB_PATH
25-
- name: Install dependencies
26-
run: |
27-
conda install conda-forge::libmamba conda-forge::libarchive
28-
conda install -c numba numba=0.61.0rc1
29-
conda env update --file environment_np2.yml --name base
3021
- name: Conda info
3122
shell: bash -l {0}
3223
run: |
3324
conda info
3425
conda list
3526
- name: Test with pytest
27+
shell: bash -l {0}
3628
run: |
3729
conda install pytest
3830
pytest

environment_np2.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,13 @@ name: qe
22
channels:
33
- conda-forge
44
- defaults
5+
- numba
56
dependencies:
67
- coverage
78
- numpy>=2
89
- scipy
910
- pandas
10-
# - numba
11+
- numba=0.61.0rc1
1112
- sympy
1213
- ipython
1314
- flake8

0 commit comments

Comments
 (0)