From 030c13895d6554234c7ee24354e47eb20e6578e2 Mon Sep 17 00:00:00 2001 From: Ivana Kellyer Date: Tue, 17 Dec 2024 12:44:18 +0100 Subject: [PATCH] Pin tests, add to CI --- .github/workflows/test-integrations-misc.yml | 10 +++++++++- tox.ini | 6 ++++-- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-integrations-misc.yml b/.github/workflows/test-integrations-misc.yml index fb76a854fb..b88b256384 100644 --- a/.github/workflows/test-integrations-misc.yml +++ b/.github/workflows/test-integrations-misc.yml @@ -27,7 +27,7 @@ jobs: strategy: fail-fast: false matrix: - python-version: ["3.6","3.8","3.12","3.13"] + python-version: ["3.6","3.7","3.8","3.12","3.13"] # python3.6 reached EOL and is no longer being supported on # new versions of hosted runners on Github Actions # ubuntu-20.04 is the last version that supported python3.6 @@ -73,6 +73,10 @@ jobs: run: | set -x # print commands that are executed ./scripts/runtox.sh "py${{ matrix.python-version }}-trytond-latest" + - name: Test typer latest + run: | + set -x # print commands that are executed + ./scripts/runtox.sh "py${{ matrix.python-version }}-typer-latest" - name: Generate coverage XML (Python 3.6) if: ${{ !cancelled() && matrix.python-version == '3.6' }} run: | @@ -153,6 +157,10 @@ jobs: run: | set -x # print commands that are executed ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-trytond" + - name: Test typer pinned + run: | + set -x # print commands that are executed + ./scripts/runtox.sh --exclude-latest "py${{ matrix.python-version }}-typer" - name: Generate coverage XML (Python 3.6) if: ${{ !cancelled() && matrix.python-version == '3.6' }} run: | diff --git a/tox.ini b/tox.ini index a6c8b35655..d5d9782bc2 100644 --- a/tox.ini +++ b/tox.ini @@ -288,7 +288,8 @@ envlist = {py3.8,py3.12,py3.13}-trytond-latest # Typer - {py3.7,py3.9,py3.10,py3.11,py3.12,py3.13}-typer-lates + {py3.7,py3.12,py3.13}-typer-v{0.15} + {py3.7,py3.12,py3.13}-typer-latest [testenv] deps = @@ -727,7 +728,7 @@ deps = trytond-latest: trytond # Typer - typer: typer + typer-v0.15: typer~=0.15.0 typer-latest: typer setenv = @@ -792,6 +793,7 @@ setenv = strawberry: TESTPATH=tests/integrations/strawberry tornado: TESTPATH=tests/integrations/tornado trytond: TESTPATH=tests/integrations/trytond + typer: TESTPATH=tests/integrations/typer socket: TESTPATH=tests/integrations/socket passenv =