Skip to content

Commit

Permalink
Adds workaround to CI for windows and py3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
fakufaku committed Feb 9, 2023
1 parent 76f8b96 commit 88e1c5b
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Lint with flake8
- name: Workaround for windows and python 3.7
if: matrix.os == 'windows-latest' && matrix.python-version == 3.7
run: |
pip install netCDF4<=1.5.8
# There is no binary package of netCF4>=1.6.0 for windows and python 3.7
# the largest supported version is 1.5.8
- name: Install dependencies
run: |
# pip install flake8
# stop the build if there are Python syntax errors or undefined names
# flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
# flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
pip install -r requirements.txt
- name: Build package
run: |
python -m pip install -e .
Expand Down

0 comments on commit 88e1c5b

Please sign in to comment.