Skip to content

Commit

Permalink
switch flake8 install to pip from conda for gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnVolk committed Jan 23, 2024
1 parent 91e6698 commit 50beb68
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions .github/workflows/fluxdataqaqc_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,20 @@ jobs:
run: |
# $CONDA is an environment variable pointing to the root of the miniconda directory
$CONDA/bin/conda env update --file environment.yml --name base
python -m pip install --upgrade pip
- name: Lint with flake8
run: |
$CONDA/bin/conda install flake8
pip install flake8
#$CONDA/bin/conda install flake8
#
# stop the build if there are Python syntax errors or undefined names
$CONDA/bin/flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --builtins='Path'
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --builtins='Path'
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
$CONDA/bin/flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
# stop the build if there are Python syntax errors or undefined names
#$CONDA/bin/flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics --builtins='Path'
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
#$CONDA/bin/flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- name: Test with pytest
run: |
conda install pytest
Expand Down

0 comments on commit 50beb68

Please sign in to comment.