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 11, 2024
1 parent 93b84dc commit 834f093
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/python-package-conda-cache.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@ jobs:
id: cache

- name: Update environment
run: mamba env update -n my-env -f environment.yml
run: |
mamba env update -n my-env -f environment.yml
ls
ls qstack
mamba install -n my-env "qstack-qml @ file:$(pwd)/qstack/qstack-qml"
if: steps.cache.outputs.cache-hit != 'true'

- name: Run tests
Expand Down
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 834f093

Please sign in to comment.