Skip to content

Commit

Permalink
Add python 3.11 to the CI and update 'dev-dependencies' to 'group.dev…
Browse files Browse the repository at this point in the history
….dependencies' (#101)


Co-authored-by: KotlinIsland <kotlinisland@users.noreply.github.com>
Co-authored-by: Nat Noordanus <n@natn.me>
  • Loading branch information
3 people committed Nov 13, 2022
1 parent 53083b5 commit f730b26
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 12 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.11
cache: poetry

- name: Install dependencies
Expand All @@ -38,7 +38,7 @@ jobs:
strategy:
matrix:
os: [Ubuntu, MacOS, Windows]
python-version: ['3.7', '3.8', '3.9', '3.10']
python-version: ['3.7', '3.8', '3.9', '3.10', '3.11']
# TODO: remove this when apparent issue with GitHub actions is fixed
exclude:
- os: Windows
Expand Down Expand Up @@ -73,7 +73,7 @@ jobs:

- uses: actions/setup-python@v4
with:
python-version: 3.9
python-version: 3.11

- name: Build package
run: poetry build
Expand Down
14 changes: 7 additions & 7 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 @@ -14,7 +14,7 @@ pastel = "^0.2.1"
tomli = { version = ">=1.2.2", python = "<3.11" }
poetry = { version = "^1.0", allow-prereleases = true, optional = true }

[tool.poetry.dev-dependencies]
[tool.poetry.group.dev.dependencies]
black = "^22.3.0"
bpython = "^0.22.1"
filelock = "^3.7.1"
Expand Down
6 changes: 5 additions & 1 deletion tests/test_executors.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,11 @@ def test_detect_venv(
assert result.stdout.startswith("poe_test_package found at ")
if is_windows:
assert result.stdout.endswith(
f"\\tests\\fixtures\\simple_project\\venv\\lib\\site-packages\\poe_test_package\\__init__.py\n"
(
f"\\tests\\fixtures\\simple_project\\venv\\lib\\site-packages\\poe_test_package\\__init__.py\n",
# Lib has a captital with python >=11
f"\\tests\\fixtures\\simple_project\\venv\\Lib\\site-packages\\poe_test_package\\__init__.py\n",
)
)
else:
assert result.stdout.endswith(
Expand Down

0 comments on commit f730b26

Please sign in to comment.