Merge pull request #178 from boidolr/renovate/lock-file-maintenance #622
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: | |
push: | |
branches: | |
- main | |
- develop | |
pull_request: | |
branches: | |
- main | |
schedule: | |
- cron: "5 7 */9 * *" | |
workflow_dispatch: | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
build: | |
strategy: | |
matrix: | |
python-version: ["3.10", "3.11", "3.12", "3.13"] | |
runs-on: ubuntu-latest | |
env: | |
# renovate: datasource=github-releases depName=astral-sh/uv | |
UV_VERSION: "0.5.5" | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- uses: astral-sh/setup-uv@caf0cab7a618c569241d31dcd442f54681755d39 # v3 | |
with: | |
enable-cache: true | |
version: ${{ env.UV_VERSION }} | |
- name: Install Python ${{ matrix.python-version }} | |
run: uv python install ${{ matrix.python-version }} | |
- name: Install tox | |
run: uv tool install tox --with tox-uv | |
- name: Execute tests | |
run: tox --runner virtualenv -e ${{ matrix.python-version }} | |
precommit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
- uses: boidolr/actions/run-precommit@main | |
env: | |
UV_PYTHON: "3.13" |