From d1cc07969652a1464545598c547a497d5b494b02 Mon Sep 17 00:00:00 2001 From: Krishnakumar AP Date: Mon, 4 Nov 2024 01:29:02 -0600 Subject: [PATCH] Update python-package-conda.yml --- .github/workflows/python-package-conda.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index 7bae7e2..beef4ec 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -16,17 +16,18 @@ jobs: python-version: 3.8 - name: Add conda to system path run: | - # $CONDA is an environment variable pointing to the root of the miniconda directory echo $CONDA/bin >> $GITHUB_PATH + - name: Configure Conda + run: | + conda config --add channels defaults + conda config --set channel_priority strict - name: Install dependencies run: | - conda env update --file environment.yml --name base + conda env update --file environment.yml --name base || conda env create --file environment.yml --name base - name: Lint with flake8 run: | conda 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 - name: Test with pytest run: |