Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add test dependency group #183

Merged
merged 3 commits into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions .github/workflows/poetry.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ jobs:
run: |
poetry run pip install coverage[toml]
if: startsWith(matrix.os, 'ubuntu')
- name: Install examples dependencies
- name: Install examples and test dependencies
run: |
poetry install --only main --extras examples
poetry install --only main --extras "examples test"
jbrixon marked this conversation as resolved.
Show resolved Hide resolved
- name: Run examples (linux)
run: |
poetry run examples/run_all.sh -c
Expand Down
18 changes: 10 additions & 8 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 10 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,10 @@ python = ">=3.9,<3.13"
httpx = ">=0.24.0"
platformdirs = ">=3"
pydantic = ">=2.5.0"
pytest = { version = ">=7", optional = true }
pytest-httpx = { version = "^0.22.0", optional = true }
pytest-mock = { version = "^3.11.1", optional = true }
pytest-sugar = { version = "^1.0.0", optional = true }
python-dotenv = ">=1"
qiskit = "^1"
qiskit-aer = ">=0.13.2"
Expand Down Expand Up @@ -88,10 +92,6 @@ poethepoet = "^0.18.1"
polyfactory = "^2.0.0"
pre-commit = "^3.1.1"
pyproject-fmt = "^2.1.3"
pytest = ">=7"
pytest-httpx = "^0.22.0"
pytest-mock = "^3.11.1"
pytest-sugar = "^1.0.0"
qiskit-experiments = "^0.6.0"
qiskit-sphinx-theme = ">=1.16.1"
qiskit = { version = "^1", extras = [
Expand All @@ -114,6 +114,12 @@ examples = [
"qiskit-algorithms",
"qiskit-optimization",
]
test = [
"pytest",
"pytest-httpx",
"pytest-mock",
"pytest-sugar",
]

[tool.ruff]
target-version = "py39"
Expand Down