Skip to content

Hash pin GitHub Actions #1077

Hash pin GitHub Actions

Hash pin GitHub Actions #1077

Workflow file for this run

name: Tests
on: [push, pull_request, workflow_dispatch]
permissions: {}
env:
FORCE_COLOR: 1
jobs:
test:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
id: python-install
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install uv
uses: hynek/setup-cached-uv@34e35d30f1ebc7421a5cc733bca38dcc62603960 # v2.6.0
with:
cache-dependency-path: |
requirements.txt
dev-requirements.txt
- name: Tox tests
run: |
uvx --with tox-uv tox -e py
- uses: codecov/codecov-action@fb8b3582c8e4def4969c97caa2f19720cb33a72f # v7.0.0
if: always()
with:
token: ${{ secrets.CODECOV_ORG_TOKEN }}
files: ./coverage.xml
flags: Python_${{ steps.python-install.outputs.python-version }}