Skip to content

Commit 778f6e5

Browse files
authored
Add conda to system path
1 parent 1098e11 commit 778f6e5

File tree

1 file changed

+9
-6
lines changed

1 file changed

+9
-6
lines changed

ci/python-package-conda.yml

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,21 @@ jobs:
1414
uses: actions/setup-python@v2
1515
with:
1616
python-version: 3.8
17-
- name: Install dependencies
17+
- name: Add conda to system path
1818
run: |
1919
# $CONDA is an environment variable pointing to the root of the miniconda directory
20-
$CONDA/bin/conda env update --file environment.yml --name base
20+
echo $CONDA/bin >> $GITHUB_PATH
21+
- name: Install dependencies
22+
run: |
23+
conda env update --file environment.yml --name base
2124
- name: Lint with flake8
2225
run: |
23-
$CONDA/bin/conda install flake8
26+
conda install flake8
2427
# stop the build if there are Python syntax errors or undefined names
25-
$CONDA/bin/flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
28+
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
2629
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
27-
$CONDA/bin/flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
30+
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
2831
- name: Test with pytest
2932
run: |
3033
conda install pytest
31-
$CONDA/bin/pytest
34+
pytest

0 commit comments

Comments
 (0)