Skip to content

Commit

Permalink
github: also recheck everything on test requirements update.
Browse files Browse the repository at this point in the history
Signed-off-by: Romain Bezut <[email protected]>
  • Loading branch information
morian committed Nov 13, 2024
1 parent c0984fb commit dffc415
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 9 deletions.
16 changes: 9 additions & 7 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,18 @@ on:
pull_request:
paths:
- '.github/workflows/test.yml'
- 'tests/requirements-*.txt'
- 'pyproject.toml'
- '**.py'
types:
- "opened"
- "synchronize"
- 'opened'
- 'synchronize'
push:
branches:
- "master"
- 'master'
paths:
- '.github/workflows/test.yml'
- 'tests/requirements-*.txt'
- 'pyproject.toml'
- '**.py'
workflow_dispatch:
Expand All @@ -27,7 +29,7 @@ jobs:
matrix:
# 3.9 was removed from this matrix due to an issue with the test framework.
# This is not worth investigating more since it will be unsupported "soon".
python-version: ["3.10", "3.11", "3.12", "3.13"]
python-version: ['3.10', '3.11', '3.12', '3.13']

steps:
- name: Repository checkout
Expand Down Expand Up @@ -87,15 +89,15 @@ jobs:
- name: Publish test results
uses: EnricoMi/publish-unit-test-result-action@v2
with:
files: "artifacts/**/pytest.xml"
files: 'artifacts/**/pytest.xml'

mypy:
name: Check typing with MyPy
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
python-version: ['3.12', '3.13']

steps:
- name: Repository checkout
Expand Down Expand Up @@ -124,7 +126,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: ["3.12", "3.13"]
python-version: ['3.12', '3.13']

steps:
- name: Repository checkout
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ select = [
'W', # pycodestyle warnings
]
ignore = [
'COM812', # missing-trailing-comma
'COM812', # Missing trailing comma
'D100', # Missing docstring in public module
'D104', # Missing docstring in public package
'D203', # 1 blank line required before class docstring
Expand All @@ -146,7 +146,7 @@ detect-same-package = false
known-first-party = ['aio_ld2410']
force-wrap-aliases = true
split-on-trailing-comma = false
required-imports = ["from __future__ import annotations"]
required-imports = ['from __future__ import annotations']

[tool.ruff.lint.flake8-type-checking]
runtime-evaluated-base-classes = ['typing.TypedDict']
Expand Down

0 comments on commit dffc415

Please sign in to comment.