Skip to content

chore(deps): Bump pre-commit-ci/lite-action from 1.0.3 to 1.1.0 #216

chore(deps): Bump pre-commit-ci/lite-action from 1.0.3 to 1.1.0

chore(deps): Bump pre-commit-ci/lite-action from 1.0.3 to 1.1.0 #216

Workflow file for this run

name: CI
on:
push:
branches: [main]
pull_request:
branches: [main]
permissions: read-all
jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v3
with:
version: latest
enable-cache: true
- name: Install deps
run: uv sync --frozen --all-extras
- uses: pre-commit/action@v3.0.1
env:
SKIP: pytest
- uses: pre-commit-ci/lite-action@v1.1.0
if: always()
test:
name: Test (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12"]
django-version: ["4.2", "5.0", "5.1"]
include:
- python-version: "3.8"
django-version: "4.2"
- python-version: "3.9"
django-version: "4.2"
- python-version: "3.13"
django-version: "5.1"
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up uv
uses: astral-sh/setup-uv@v3
with:
version: latest
enable-cache: true
- name: Set Python version
run: uv python pin "${{ matrix.python-version }}"
- name: Install deps
run: uv sync --frozen --all-extras
- name: Install Django
run: uv pip install Django=="${{ matrix.django-version }}.*"
- name: Run tests
run: uv run --frozen pytest
- name: Upload test results to Codecov
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: junit.xml
flags: >-
python-${{ matrix.python-version }},
django-${{ matrix.django-version }}
- name: Upload coverage report
uses: codecov/codecov-action@v4
env:
PYTHON: ${{ matrix.python-version }}
DJANGO: ${{ matrix.django-version }}
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false
files: coverage.xml
env_vars: PYTHON,DJANGO
flags: >-
python-${{ matrix.python-version }},
django-${{ matrix.django-version }}