-
Notifications
You must be signed in to change notification settings - Fork 3
43 lines (34 loc) · 897 Bytes
/
django-ci.yml
File metadata and controls
43 lines (34 loc) · 897 Bytes
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
name: Django CI
on:
schedule:
- cron: '16 18 * * 2'
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 3
matrix:
python-version: ["3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v4
- name: Install uv and set the python version
uses: astral-sh/setup-uv@v6
with:
enable-cache: true
version: "0.10.10"
python-version: ${{ matrix.python-version }}
- name: Install the project
run: uv sync --locked --all-extras --dev
- name: pre-commit
run: |
uvx pre-commit@4.5.0 run --all-files
- name: Run Tests
run: |
uv run ./manage.py test
uv run ./manage.py makemigrations
uv run ./manage.py migrate
uv run ./manage.py check