Skip to content

Commit cae5ee8

Browse files
committed
updated workflow
1 parent ae53063 commit cae5ee8

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/build_docs.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,16 @@
11
name: Docs
22
on: [push, pull_request, workflow_dispatch]
33
permissions:
4-
contents: write
4+
contents: write
5+
56
jobs:
67
docs:
78
runs-on: ubuntu-latest
89
steps:
910
- uses: actions/checkout@v3
1011
- uses: actions/setup-python@v3
12+
with:
13+
python-version: '3.8' # Use Python 3.8
1114
- name: Install dependencies
1215
run: |
1316
pip install -r requirements.txt
@@ -20,4 +23,4 @@ jobs:
2023
uses: peaceiris/actions-gh-pages@v3
2124
with:
2225
personal_token: ${{ secrets.GITHUB_TOKEN }}
23-
publish_dir: ./docs/_build/html
26+
publish_dir: ./docs/_build/html

.github/workflows/run_tests.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,23 +10,20 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v3
13-
- name: Set up Python 3.10
13+
- name: Set up Python 3.8 # Change to Python 3.8 (or 3.9)
1414
uses: actions/setup-python@v3
1515
with:
16-
python-version: '3.10'
16+
python-version: '3.8' # Specify Python 3.8 here
1717
- name: Add conda to system path
1818
run: |
19-
# $CONDA is an environment variable pointing to the root of the miniconda directory
2019
echo $CONDA/bin >> $GITHUB_PATH
2120
- name: Install dependencies
2221
run: |
2322
pip install -r requirements.txt
2423
- name: Lint with flake8
2524
run: |
2625
conda install flake8
27-
# stop the build if there are Python syntax errors or undefined names
2826
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
3027
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
3128
- name: Test with pytest
3229
run: |

0 commit comments

Comments
 (0)