Skip to content

Commit

Permalink
ci: require Python 3.8 at least
Browse files Browse the repository at this point in the history
Allow using the package with Python 3.8 and higher. Test all Python versions in the CI.

Fixes MRGFY-3702

Change-Id: I7ef510cacf11fc23572abaeac8c91f60b12fb889
  • Loading branch information
DouglasBlackwood committed Jun 10, 2024
1 parent 056cae4 commit a39dcf4
Show file tree
Hide file tree
Showing 4 changed files with 72 additions and 12 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,17 @@ on:

jobs:
test:
name: "Test with Python ${{ matrix.python-version }}"
timeout-minutes: 5
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/[email protected]
- uses: actions/[email protected]
with:
python-version: ">=3.12"
python-version: "${{ matrix.python-version }}"
- run: |
pip install -r requirements-poetry.txt
poetry install --sync
Expand Down
6 changes: 5 additions & 1 deletion .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ queue_rules:
allow_inplace_checks: true
queue_conditions:
- and: &CheckRuns
- check-success=test
- check-success=Test with Python 3.8
- check-success=Test with Python 3.9
- check-success=Test with Python 3.10
- check-success=Test with Python 3.11
- check-success=Test with Python 3.12
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=0"
- "#review-threads-unresolved=0"
Expand Down
70 changes: 61 additions & 9 deletions poetry.lock

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

2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ authors = ["Charly Laurent <[email protected]>"]
readme = "README.md"

[tool.poetry.dependencies]
python = ">=3.12.3,<4.0"
python = ">=3.8,<4.0"
sqlparse = ">=0.5.0"

[tool.poetry.group.dev.dependencies]
Expand Down

0 comments on commit a39dcf4

Please sign in to comment.