Skip to content

Commit cac96f2

Browse files
committed
tests: use Poetry to manage the GitHub actions pytest plugin
1 parent d9787a2 commit cac96f2

File tree

3 files changed

+24
-6
lines changed

3 files changed

+24
-6
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -68,13 +68,10 @@ jobs:
6868
run: timeout 10s poetry run pip --version || rm -rf .venv
6969

7070
- name: Install dependencies
71-
run: poetry install
72-
73-
- name: Install pytest plugin
74-
run: poetry run pip install pytest-github-actions-annotate-failures
71+
run: poetry install --with github-actions
7572

7673
- name: Run mypy
7774
run: poetry run mypy
7875

7976
- name: Run pytest
80-
run: poetry run pytest -v tests/
77+
run: poetry run pytest -v

poetry.lock

Lines changed: 16 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,12 @@ pytest-randomly = "^3.12"
3030
pytest-xdist = { version = "^2.5", extras = ["psutil"] }
3131
mypy = ">=0.971"
3232

33+
# only used in github actions
34+
[tool.poetry.group.github-actions]
35+
optional = true
36+
[tool.poetry.group.github-actions.dependencies]
37+
pytest-github-actions-annotate-failures = "^0.1.7"
38+
3339
[tool.poetry.plugins."poetry.application.plugin"]
3440
export = "poetry_plugin_export.plugins:ExportApplicationPlugin"
3541

0 commit comments

Comments
 (0)