Skip to content

build: improve caching by adding uv version to actions #547

build: improve caching by adding uv version to actions

build: improve caching by adding uv version to actions #547

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=pypi packageName=uv
UV_VERSION: "0.4.20"
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: astral-sh/setup-uv@c9aa747934b6867b18bf8f6624a8929c4f76147b # v3
with:
enable-cache: true
version: ${{ env.UV_VERSION }}
- name: Install Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Execute tests
run: uv tool run tox -e ${{ matrix.python-version }}
precommit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4
- uses: boidolr/actions/run-precommit@main