From 5348b091d98ab75b6f6009015812d2d8b5f7f308 Mon Sep 17 00:00:00 2001 From: Giovanni Ciatto Date: Wed, 27 Mar 2024 14:37:30 +0100 Subject: [PATCH] chore(ci): test on python >=3.10 --- .github/workflows/check.yml | 9 ++++----- pyproject.toml | 2 +- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 0063d8e..6df0aee 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -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 @@ -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 diff --git a/pyproject.toml b/pyproject.toml index e0114c0..85fcf68 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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]