This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
Dependencies: Bump sphinx from 8.0.2 to 8.1.3 #139
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
push: | |
branches: | |
- main | |
jobs: | |
tests: | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: false | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
steps: | |
- name: Check out repository | |
uses: actions/checkout@v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@v2 | |
with: | |
enable-cache: true | |
cache-dependency-glob: "uv.lock" | |
- name: Setup Python | |
run: uv python install ${{ matrix.python-version }} | |
- name: Run tests | |
run: | | |
export PYTHON_VERSION=${{ matrix.python-version }} | |
export TOX_ENV=`uv run tox --listenvs | grep "py${PYTHON_VERSION//./}-" | tr '\n' ','` | |
uv run --python ${{ matrix.python-version }} tox -e $TOX_ENV |