-
Notifications
You must be signed in to change notification settings - Fork 0
47 lines (37 loc) · 1.5 KB
/
ci.yml
File metadata and controls
47 lines (37 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
name: CI
on:
push:
pull_request:
jobs:
quality:
name: ${{ matrix.os }} / Python ${{ matrix.python-version }}
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ["3.12", "3.13", "3.14"]
steps:
- name: Checkout
uses: actions/checkout@v6
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Set up uv
uses: astral-sh/setup-uv@v7
- name: Run Django system checks
run: uv run --no-project --with-requirements requirements-dev.txt python manage.py check
- name: Run pre-commit
run: uv run --no-project --with-requirements requirements-dev.txt pre-commit run --all-files
- name: Analyze dependency licenses
run: uv run --no-project --with-requirements requirements-dev.txt --with pip-licenses pip-licenses --format=markdown --with-authors --with-urls --output-file licenses-report.md
- name: Upload license report
uses: actions/upload-artifact@v7
with:
name: licenses-report-${{ matrix.os }}-py${{ matrix.python-version }}
path: licenses-report.md
- name: Run unit tests with coverage
run: |
uv run --no-project --with-requirements requirements-dev.txt coverage run manage.py test
uv run --no-project --with-requirements requirements-dev.txt coverage report --fail-under=80