Skip to content

Commit

Permalink
test: inform poetry to use the specific version (#16)
Browse files Browse the repository at this point in the history
  • Loading branch information
miketheman authored Sep 3, 2023
1 parent 1fee340 commit 48fa875
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ jobs:
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- run: poetry env use ${{ matrix.python-version }}
- run: poetry install
- run: poetry run mypy -p flake8_sqlalchemy
- run: poetry run pytest
9 changes: 8 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ classifiers = [

[tool.poetry.dependencies]
python = "^3.8.1"
flake8 = "^6.0.0"
flake8 = "^6.0"

[tool.poetry.group.dev.dependencies]
astpretty = "^3.0.0"
Expand All @@ -47,6 +47,13 @@ pytest = "^7.3.0"
pytest-cov = "^4.0.0"
sqlalchemy = "^2.0"

# greenlet is a dependency of SQLAlchemy, unrelease Python 3.12-compatible
# remove this once greenlet 3.0.0 is released.
greenlet = [
{ version = "^3.0.0rc1", python = "^3.12.0rc1" },
{ version = "<3.0.0a0", python = "<3.12" },
]

[tool.coverage.run]
branch = true
source = ["flake8_sqlalchemy"]
Expand Down

0 comments on commit 48fa875

Please sign in to comment.