Update python-package-conda.yml
Browse files
.github/workflows/python-package-conda.yml
CHANGED
@@ -10,17 +10,23 @@ jobs:
|
|
10 |
|
11 |
steps:
|
12 |
- uses: actions/checkout@v4
|
|
|
|
|
|
|
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
|
@@ -28,6 +34,7 @@ jobs:
|
|
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
|
|
|
10 |
|
11 |
steps:
|
12 |
- uses: actions/checkout@v4
|
13 |
+
with:
|
14 |
+
lfs: true # Enable LFS in the checkout step
|
15 |
+
|
16 |
- name: Set up Python 3.10
|
17 |
uses: actions/setup-python@v3
|
18 |
with:
|
19 |
python-version: '3.10'
|
20 |
+
|
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 |
+
|
26 |
- name: Install dependencies
|
27 |
run: |
|
28 |
conda env update --file environment.yml --name base
|
29 |
+
|
30 |
- name: Lint with flake8
|
31 |
run: |
|
32 |
conda install flake8
|
|
|
34 |
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
|
35 |
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
|
36 |
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
|
37 |
+
|
38 |
- name: Test with pytest
|
39 |
run: |
|
40 |
conda install pytest
|