Skip to content

Commit 309d419

Browse files
authored
Update python-package-conda.yml
1 parent dfc445e commit 309d419

File tree

1 file changed

+10
-21
lines changed

1 file changed

+10
-21
lines changed

.github/workflows/python-package-conda.yml

Lines changed: 10 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -10,29 +10,18 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v4
13-
- name: Set up Python 3.10
14-
uses: actions/setup-python@v3
15-
with:
16-
python-version: '3.11'
17-
- name: Set up Conda
13+
14+
- name: Install Miniconda
1815
uses: conda-incubator/setup-miniconda@v2
1916
with:
2017
auto-update-conda: true
21-
python-version: '3.11'
22-
environment-name: test-env
23-
- name: Pre-install numpy
24-
run: conda install numpy=1.26.4 -y
25-
- name: Install current library and dependencies
18+
miniforge-variant: Mambaforge # Faster solver
19+
20+
- name: Install dependencies
2621
run: |
27-
pip install --no-build-isolation -e .
28-
# - name: Lint with flake8
29-
# run: |
30-
# conda install flake8
31-
# # stop the build if there are Python syntax errors or undefined names
32-
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
33-
# # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
34-
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
35-
- name: Test with pytest
22+
conda install -n testenv numpy=1.26 pytest pip
23+
conda run -n testenv pip install -e .
24+
25+
- name: Run tests
3626
run: |
37-
conda install pytest
38-
pytest
27+
conda run -n testenv pytest

0 commit comments

Comments
 (0)