From 50beb686b33a4daff779a03aacaed12abcf3a8de Mon Sep 17 00:00:00 2001 From: John Volk Date: Tue, 23 Jan 2024 13:45:36 -0500 Subject: [PATCH] switch flake8 install to pip from conda for gh actions --- .github/workflows/fluxdataqaqc_tests.yml | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/.github/workflows/fluxdataqaqc_tests.yml b/.github/workflows/fluxdataqaqc_tests.yml index 33eac97..15abe4e 100644 --- a/.github/workflows/fluxdataqaqc_tests.yml +++ b/.github/workflows/fluxdataqaqc_tests.yml @@ -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