Skip to content

chore(deps): bump step-security/harden-runner from 2.10.4 to 2.11.0 #218

chore(deps): bump step-security/harden-runner from 2.10.4 to 2.11.0

chore(deps): bump step-security/harden-runner from 2.10.4 to 2.11.0 #218

Workflow file for this run

name: Python tests
on:
pull_request:
branches: [main]
permissions:
contents: read
jobs:
python:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Harden Runner
uses: step-security/harden-runner@4d991eb9b905ef189e4c376166672c3f2f230481 # v2.11.0
with:
egress-policy: audit
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5.4.0
with:
python-version: ${{ matrix.python-version }}
- name: Set up uv
# Install a specific uv version using the installer
run: |
curl -LsSf https://astral.sh/uv/0.3.4/install.sh | sh
- name: Install the project
run: uv sync --all-extras --dev
- name: Linting
run: |
uv run mypy itscalledsoccer
uv run ruff check itscalledsoccer
- name: Run Pytest and generate coverage file
run: |
uv run pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=itscalledsoccer tests/ | tee pytest-coverage.txt
- name: Upload coverage to Codecov
uses: codecov/codecov-action@13ce06bfc6bbe3ecf90edbbf1bc32fe5978ca1d3 # v5.3.1
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}