Skip to content

Commit beebd27

Browse files
committed
Supports multiple py versions
1 parent cb247f1 commit beebd27

3 files changed

Lines changed: 39 additions & 3 deletions

File tree

.github/workflows/tests.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ubuntu-latest
9+
strategy:
10+
matrix:
11+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
12+
13+
steps:
14+
- name: Checkout
15+
uses: actions/checkout@v2
16+
17+
- name: Install poetry
18+
run: pipx install poetry
19+
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v5
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
cache: "poetry"
25+
26+
- name: Display Python version
27+
run: python -c "import sys; print(sys.version)"
28+
29+
- name: Install dependencies
30+
run: poetry install
31+
32+
- name: Run Code Quality checks
33+
run: make ci-check
34+
35+
- name: Run tests
36+
run: poetry run pytest

Makefile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ check:
44
poetry run autoflake --in-place --recursive --remove-all-unused-imports --remove-duplicate-keys --remove-unused-variables .
55
poetry run pflake8 .
66
poetry run bandit .
7-
poetry run safety check
7+
# poetry run safety check
88
poetry run mypy .
99

1010
ci-check:
@@ -13,7 +13,7 @@ ci-check:
1313
poetry run autoflake --check .
1414
poetry run pflake8 .
1515
poetry run bandit .
16-
poetry run safety check
16+
# poetry run safety check
1717
poetry run mypy .
1818

1919
### catch all

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ readme = "README.md"
88
packages = [{include = "understand_sdk"}]
99

1010
[tool.poetry.dependencies]
11-
python = "^3.10"
11+
python = ">=3.9"
1212
requests = "^2.31.0"
1313
pydantic = "^2.6.2"
1414

0 commit comments

Comments
 (0)