Skip to content

Commit

Permalink
testing tox-gh
Browse files Browse the repository at this point in the history
  • Loading branch information
wolph committed Jul 24, 2024
1 parent dd05f8d commit 322e68f
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,22 +4,30 @@ on:
- push
- pull_request

concurrency:
group: check-${{ github.ref }}
cancel-in-progress: true

jobs:
build:
name: test with ${{ matrix.py }} on ${{ matrix.os }}
runs-on: ubuntu-latest

strategy:
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12']
py: ['3.8', '3.9', '3.10', '3.11', '3.12']

steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.py }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
python-version: ${{ matrix.py }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions
- name: Test with tox
run: tox
run: python -m pip install tox-gh>=1.2
- name: Setup test suite
run: tox -vv --notest
- name: Run test suite
run: tox --skip-pkg-install
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,14 @@ envlist =
skip_missing_interpreters = True
usedevelop = True

[gh]
python =
3.12 = py312
3.11 = py311
3.10 = py310
3.9 = py39
3.8 = py38

[testenv]
deps =
setuptools
Expand Down

0 comments on commit 322e68f

Please sign in to comment.