Skip to content

Commit

Permalink
[WIP commit] try and fix CI to deal with package splitting
Browse files Browse the repository at this point in the history
  • Loading branch information
liam-o-marsh committed Jun 10, 2024
1 parent 93b84dc commit 8e1697a
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/python-package-conda.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8e1697a

Please sign in to comment.