Skip to content

Commit

Permalink
Add test dependency group (#183)
Browse files Browse the repository at this point in the history
* Add test dependency group
  • Loading branch information
jbrixon authored Aug 1, 2024
1 parent 238eb15 commit 0b2ebf0
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 14 deletions.
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"
- 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

0 comments on commit 0b2ebf0

Please sign in to comment.