Skip to content

Commit 2c9bcd3

Browse files
authored
Update python-package-conda.yml
1 parent 9608f82 commit 2c9bcd3

File tree

1 file changed

+15
-26
lines changed

1 file changed

+15
-26
lines changed

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

+15-26
Original file line numberDiff line numberDiff line change
@@ -5,30 +5,19 @@ on: [push]
55
jobs:
66
build-linux:
77
runs-on: ubuntu-latest
8-
strategy:
9-
max-parallel: 5
10-
118
steps:
12-
- uses: actions/checkout@v3
13-
- name: Set up Python 3.10
14-
uses: actions/setup-python@v3
15-
with:
16-
python-version: '3.10'
17-
- name: Add conda to system path
18-
run: |
19-
# $CONDA is an environment variable pointing to the root of the miniconda directory
20-
echo $CONDA/bin >> $GITHUB_PATH
21-
- name: Install dependencies
22-
run: |
23-
conda env update --file environment.yml --name base
24-
- name: Lint with flake8
25-
run: |
26-
conda install flake8
27-
# stop the build if there are Python syntax errors or undefined names
28-
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
29-
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
30-
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
31-
- name: Test with pytest
32-
run: |
33-
conda install pytest
34-
pytest
9+
- name: Check out repository
10+
uses: actions/checkout@v3
11+
12+
- name: Set up Python
13+
uses: actions/setup-python@v3
14+
with:
15+
python-version: 3.10
16+
17+
- name: Add conda to system path
18+
uses: conda-incubator/setup-miniconda@v2
19+
with:
20+
auto-update-conda: true
21+
22+
- name: Install dependencies
23+
run: conda env update --file environment.yml --name base

0 commit comments

Comments
 (0)