Skip to content
Closed
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
13 changes: 4 additions & 9 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,23 +14,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
id: target-python
with:
python-version: "${{ matrix.python-version }}"
# poetry >=2.3 requires Python >=3.10, so install it under a fixed
# interpreter and target the matrix Python via `poetry env use`. This keeps
# the project tested on every matrix version (including 3.9).
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
- run: |
pip install -r requirements-poetry.txt
poetry env use "${{ steps.target-python.outputs.python-path }}"
poetry sync
# poetry picks the interpreter off PATH, and every matrix version
# satisfies `python = "^3.10"`, so a wrong pick would stay green.
poetry run python -c "import sys; assert '%d.%d' % sys.version_info[:2] == '${{ matrix.python-version }}', sys.version"
poetry run poe linters
poetry run poe test
poetry build
Expand Down
12 changes: 6 additions & 6 deletions poetry.lock

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

9 changes: 5 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ classifiers = [
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
Expand All @@ -26,7 +25,7 @@ classifiers = [
"Topic :: Software Development :: Testing",
"Topic :: Software Development :: Testing :: Unit",
]
requires-python = ">=3.9"
requires-python = ">=3.10"
dynamic = ["version"]

[project.urls]
Expand All @@ -37,7 +36,7 @@ repository = "https://github.com/Mergifyio/sql-compare"
version = "0.0.0"

[tool.poetry.dependencies]
python = "^3.9"
python = "^3.10"
sqlparse = ">=0.5.0"

[tool.poetry.group.dev.dependencies]
Expand Down Expand Up @@ -69,7 +68,9 @@ filterwarnings = ["error"]
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py312"
# No target-version: ruff infers it from `requires-python`, so the two cannot
# drift. Pinning py312 while the floor is 3.10 makes ruff demand PEP 695
# syntax that is a SyntaxError on the 3.10 and 3.11 matrix legs.

[tool.ruff.lint]
preview = true
Expand Down