Skip to content

feat(python)!: drop python 3.8 support #722

feat(python)!: drop python 3.8 support

feat(python)!: drop python 3.8 support #722

Workflow file for this run

name: test
on:
workflow_dispatch:
pull_request:
push:
branches:
- main
jobs:
pytest:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: "uv.lock"
- run: uv sync --group test
- run: uv run coverage run -m pytest -s -vv
- run: uv run coverage report
- run: uv run coverage html
- name: Archive code coverage results
uses: actions/upload-artifact@v4
with:
name: code-coverage-report-${{ matrix.os }}-${{ matrix.python-version }}
path: htmlcov
retention-days: 5
action:
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [ubuntu-latest, windows-latest, macos-latest]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v4
- uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
enable-cache: true
cache-dependency-glob: "uv.lock"
- run: uv sync
- run: uv run creosote --venv .venv --exclude-dep tomli
pre-commit:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Check pre-commit rev format
# this is needed because release-please does not add in the "v" prefix
run: |
if grep "rev:" .pre-commit-config.yaml | grep -v "rev: v"; then
echo "Error: Found rev: entries without 'v' prefix"
exit 1
fi