ci(dependencies): 👷 Update astral-sh/setup-uv to v5 #29
Workflow file for this run
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: | |
workflow_dispatch: | |
push: | |
branches: ["main"] | |
tags-ignore: ["**"] | |
pull_request: | |
concurrency: | |
group: check-${{ github.ref }} | |
cancel-in-progress: true | |
jobs: | |
check: | |
name: tox env ${{ matrix.tox_env }} under python ${{ matrix.python }} | |
runs-on: ubuntu-latest | |
strategy: | |
fail-fast: true | |
matrix: | |
python: | |
- "3.13" | |
tox_env: | |
- pre-commit | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@180f8b44399608a850e1db031fa65c77746566d3 # v5 | |
- name: Pick environment to run | |
run: | | |
import os; | |
env = "TOXENV=${{ matrix.tox_env }}\n" | |
with open(os.environ["GITHUB_ENV"], mode="a", encoding="utf-8") as file_handler: | |
file_handler.write(env) | |
shell: python | |
- name: Run the test suite | |
run: | | |
uvx --no-progress --quiet --with tox-uv tox run | |
test: | |
name: Run ${{ matrix.session }} tests under python ${{ matrix.python }} on ${{ matrix.os }} | |
needs: check | |
runs-on: ${{ matrix.os }} | |
timeout-minutes: 10 | |
environment: test | |
strategy: | |
fail-fast: true | |
matrix: | |
python: | |
- "3.13" | |
- "3.12" | |
- "3.11" | |
- "3.10" | |
- "3.9" | |
os: | |
- ubuntu-latest | |
- macos-latest | |
- windows-latest | |
session: | |
- open-source | |
- proprietary | |
steps: | |
- name: Check out the repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- name: Install uv | |
uses: astral-sh/setup-uv@180f8b44399608a850e1db031fa65c77746566d3 # v5 | |
- name: Pick environment to run | |
run: | | |
import os; | |
toxenv = "TOXENV=py{}{}-test-${{ matrix.session }}\n".format(*"${{ matrix.python }}".split(".")) | |
os_name = "OS_NAME=${{ matrix.os }}\n" | |
env = toxenv + os_name | |
with open(os.environ["GITHUB_ENV"], mode="a", encoding="utf-8") as file_handler: | |
file_handler.write(env) | |
shell: python | |
- name: Github Login | |
run: | | |
echo "${{ secrets.GH_TOKEN }}" | gh auth login --with-token | |
- name: Run the test suite | |
run: | | |
git config --global init.defaultBranch main | |
uvx --no-progress --quiet --with tox-uv tox run |