Skip to content

Commit

Permalink
adapt github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
flowerthrower committed Nov 17, 2023
1 parent 4186545 commit c6e65ba
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ jobs:
shell: bash
run: |
python -m pip install wheels/*.whl
python -c 'import qutip_qip; print(qutip_qip.__version__); assert "dev" not in qutip_qip.__version__; assert "+" not in qutip_qip.__version__'
python -c 'import qutip_qoc; print(qutip_qoc.__version__); assert "dev" not in qutip_qoc.__version__; assert "+" not in qutip_qoc.__version__'
- name: Upload sdist and wheels to PyPI
env:
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/build_documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,13 @@ jobs:
run: |
python -mpip install -r doc/requirements.txt
- name: Install qutip-qip from GitHub
- name: Install qutip-qoc from GitHub
run: |
python -mpip install -e .[full]
# Install in editable mode so it doesn't matter if we import from
# inside the installation directory, otherwise we can get some errors
# because we're importing from the wrong location.
python -c 'import qutip_qip; print("QuTiP QIP Version: %s" % qutip_qip.__version__)'
python -c 'import qutip_qoc; print("QuTiP qoc Version: %s" % qutip_qoc.__version__)'
python -c 'import qutip; qutip.about()'
- name: Build documentation
Expand All @@ -46,6 +46,6 @@ jobs:
- name: Upload built files
uses: actions/upload-artifact@v3
with:
name: qutip_qip_html_docs
name: qutip_qoc_html_docs
path: doc/_build/html/*
if-no-files-found: error
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ jobs:
# We use each subpackage explicitly here; see https://github.com/qir-alliance/pyqir/issues/167.
run: python -m pip install 'pyqir-generator${{ matrix.pyqir-version }}' 'pyqir-parser${{ matrix.pyqir-version }}'

- name: Install qutip-qip
- name: Install qutip-qoc
# Installing in-place so that coveralls can locate the source code.
run: |
pip install -e .[full]
- name: Test with pytest and generate coverage report
run: |
pip install pytest-cov coveralls
pytest tests --strict-markers --cov=qutip_qip --cov-report= --color=yes
pytest tests --strict-markers --cov=qutip_qoc --cov-report= --color=yes
- name: Upload to Coveralls
env:
GITHUB_TOKEN: ${{ secrets.github_token }}
Expand Down

0 comments on commit c6e65ba

Please sign in to comment.