Skip to content

Commit

Permalink
Pin tests, add to CI
Browse files Browse the repository at this point in the history
  • Loading branch information
sentrivana committed Dec 17, 2024
1 parent dc49206 commit 030c138
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 9 additions & 1 deletion .github/workflows/test-integrations-misc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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: |
Expand Down Expand Up @@ -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: |
Expand Down
6 changes: 4 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -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 =
Expand Down Expand Up @@ -727,7 +728,7 @@ deps =
trytond-latest: trytond

# Typer
typer: typer
typer-v0.15: typer~=0.15.0
typer-latest: typer

setenv =
Expand Down Expand Up @@ -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 =
Expand Down

0 comments on commit 030c138

Please sign in to comment.