Skip to content

Commit 78487b5

Browse files
authored
python: test against older versions of Python (#444)
2 parents bfc192f + 3facfdf commit 78487b5

File tree

18 files changed

+218
-440
lines changed

18 files changed

+218
-440
lines changed

.github/workflows/python-ci.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ jobs:
1212
strategy:
1313
fail-fast: false
1414
matrix:
15+
python-version: ["3.9", "3.10", "3.11", "3.12"]
1516
os: [ubuntu-latest, windows-latest]
1617
runs-on: ${{ matrix.os }}
1718
steps:
@@ -21,7 +22,7 @@ jobs:
2122
- name: Set up Python
2223
uses: actions/setup-python@v5
2324
with:
24-
python-version-file: "python/selfie-lib/pyproject.toml"
25+
python-version: ${{ matrix.python-version }}
2526
cache: "poetry"
2627
- name: selfie-lib - poetry install
2728
run: poetry install

python/.python-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
3.12
1+
3.8

python/example-pytest-selfie/poetry.lock

Lines changed: 127 additions & 246 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/example-pytest-selfie/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ authors = ["Selina Delgado <[email protected]>","Harvir Sahota <hsahota2312@
66
license = "Apache-2.0"
77

88
[tool.poetry.dependencies]
9-
python = "^3.12"
9+
python = "^3.9"
1010
openai = "^1.0.0"
1111

1212
[tool.poetry.group.dev.dependencies]

python/pytest-selfie/poetry.lock

Lines changed: 24 additions & 144 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/pytest-selfie/pyproject.toml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@ license = "Apache-2.0"
77
readme = "README.md"
88

99
[tool.poetry.dependencies]
10-
python = "^3.12"
10+
python = "^3.9"
1111
pytest = "^8.0.0"
12-
tox = "^4.0.0"
1312
selfie-lib = { path = "../selfie-lib", develop = true }
1413

1514
[tool.poetry.group.dev.dependencies]

python/selfie-lib/poetry.lock

Lines changed: 32 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

python/selfie-lib/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ license = "Apache-2.0"
77
readme = "README.md"
88

99
[tool.poetry.dependencies]
10-
python = "^3.12"
10+
python = "^3.9"
1111

1212
[tool.poetry.group.dev.dependencies]
1313
ruff = "^0.4.0"

python/selfie-lib/selfie_lib/ArrayMap.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
from abc import ABC, abstractmethod
2-
from collections.abc import ItemsView, Iterator, Mapping, Set
3-
from typing import Any, List, Tuple, TypeVar, Union
2+
from collections.abc import Set
3+
from typing import Any, ItemsView, Iterator, List, Mapping, Tuple, TypeVar, Union
44

55
T = TypeVar("T")
66
V = TypeVar("V")

0 commit comments

Comments
 (0)