Skip to content

Commit

Permalink
workflows/tests: apply qiskit override
Browse files Browse the repository at this point in the history
  • Loading branch information
airwoodix committed Feb 23, 2024
1 parent 8495058 commit b612974
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
8 changes: 5 additions & 3 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
env:
PYTHONIOENCODING: utf-8
jobs:
tests:
package-tests:
name: tests-${{ matrix.os }}-py${{ matrix.python-version }}-qiskit${{ matrix.qiskit-version }}
runs-on: ${{ matrix.os }}
strategy:
Expand Down Expand Up @@ -37,8 +37,10 @@ jobs:
hatch build
- name: Install package wheel
run: |
uv pip install --strict 'qiskit-aqt-provider[examples] @ dist/qiskit_aqt_provider-1.3.0-py3-none-any.whl'
- name: Run examples (linux)
# there is only one wheel in dist/
echo "qiskit==${{ matrix.qiskit-version }}" > override.txt
uv pip install --strict --override override.txt "qiskit-aqt-provider[examples] @ $(ls dist/*.whl)"
- name: Run examples
run: |
./examples/run_all.sh
# - name: Lock
Expand Down
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -193,6 +193,9 @@ convention = "google"
[tool.coverage.run]
dynamic_context = "test_function"
relative_files = true
omit = [
"examples/*.py",
]

[tool.coverage.report]
fail_under = 99
Expand Down

0 comments on commit b612974

Please sign in to comment.