From 8e1697abfe7344303105031d8e708999fcc07b5e Mon Sep 17 00:00:00 2001 From: Liam Marsh Date: Mon, 10 Jun 2024 15:49:37 +0200 Subject: [PATCH] [WIP commit] try and fix CI to deal with package splitting --- .github/workflows/python-package-conda.yml | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/python-package-conda.yml b/.github/workflows/python-package-conda.yml index 5d9b550..fa27384 100644 --- a/.github/workflows/python-package-conda.yml +++ b/.github/workflows/python-package-conda.yml @@ -19,21 +19,24 @@ jobs: uses: actions/setup-python@v3 with: python-version: 3.10.9 - - 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: 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: Install dependencies run: | - conda env update --file environment.yml --name base + #conda env update --file environment.yml --name base + python3 -m pip install pip + pip install -r requirements.txt + pip install qstack/qstack-qml - name: Lint with flake8 run: | - conda install flake8 + 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 - name: Test with pytest run: | - conda install pytest + pip install pytest pytest