Skip to content

Commit

Permalink
chore(ci): test on python >=3.10
Browse files Browse the repository at this point in the history
  • Loading branch information
gciatto committed Mar 27, 2024
1 parent 1c4081d commit 5348b09
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ jobs:
python-version:
- '3.10'
- '3.11'
- '3.12'
runs-on: ${{ matrix.os }}
name: Run tests on Python ${{ matrix.python-version }}, on ${{ matrix.os }}
timeout-minutes: 45
Expand All @@ -42,14 +43,12 @@ jobs:
- name: Checkout code
uses: actions/checkout@v4

- name: Override Python version for Poetry
run: sed -i -e 's#^python\s*=.*$#python = "^${{ matrix.python-version }}"#g' pyproject.toml
# - name: Override Python version for Poetry
# run: sed -i -e 's#^python\s*=.*$#python = "^${{ matrix.python-version }}"#g' pyproject.toml

- name: Restore Python dependencies
run: poetry lock && poetry install

- name: Test
shell: bash
run: |
poetry env use .venv/bin/python
python -m unittest discover -v -s tests
run: poetry run python -m unittest discover -v -s tests
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ license = "Apache 2.0"
readme = "README.md"

[tool.poetry.dependencies]
python = "^3.10.0"
python = ">=3.10.0"
Kivy = "^2.3.0"

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

0 comments on commit 5348b09

Please sign in to comment.