diff --git a/.github/workflows/test-suite.yml b/.github/workflows/test-suite.yml index 73d9b96..8004326 100644 --- a/.github/workflows/test-suite.yml +++ b/.github/workflows/test-suite.yml @@ -16,35 +16,18 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 - with: - python-version: "3.12" - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install tox + - uses: astral-sh/setup-uv@v3 - name: Lint with tox - run: tox -e lint + run: uvx tox -e lint test: - name: "Python Test ${{matrix.python-version}} ${{ matrix.os }}" + name: "Python Test ${{ matrix.os }}" needs: [lint] runs-on: "${{ matrix.os }}" strategy: fail-fast: false # allow tests to run on all platforms matrix: - python-version: - - "pypy-3.8" - - "pypy-3.9" - - "pypy-3.10" - - "3.8" - - "3.9" - - "3.10" - - "3.11" - - "3.12" - - "3.13" os: - ubuntu-latest - windows-latest @@ -52,15 +35,7 @@ jobs: steps: - uses: actions/checkout@v4 - - - uses: actions/setup-python@v5 - with: - python-version: ${{ matrix.python-version }} - - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install tox tox-gh-actions + - uses: astral-sh/setup-uv@v3 - name: Test with tox - run: tox + run: uvx tox diff --git a/tox.ini b/tox.ini index 31ce42b..4304e37 100644 --- a/tox.ini +++ b/tox.ini @@ -1,18 +1,6 @@ [tox] -requires = tox>=3 -envlist = lint, type, pypy{38,39,310}, py{38,39,310,311,312,313} - -[gh-actions] -python = - pypy-3.8: pypy38 - pypy-3.9: pypy39 - pypy-3.10: pypy310 - 3.8: py38 - 3.9: py39 - 3.10: py310 - 3.11: py311 - 3.12: py312 - 3.13: py313 +requires = tox>=3,tox-uv +envlist = py{38,39,310,311,312,313}, pypy{38,39,310} [testenv] description = run unit tests