From 322e68f42d795d54e9aef16ccd2ade0d181da57e Mon Sep 17 00:00:00 2001 From: Rick van Hattem Date: Wed, 24 Jul 2024 02:16:05 +0200 Subject: [PATCH] testing tox-gh --- .github/workflows/test.yaml | 28 ++++++++++++++++++---------- tox.ini | 8 ++++++++ 2 files changed, 26 insertions(+), 10 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 6cdcc11..e0fa82b 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -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 diff --git a/tox.ini b/tox.ini index 35da5d6..6631ece 100644 --- a/tox.ini +++ b/tox.ini @@ -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