Skip to content

Commit 06884cf

Browse files
committed
Add CI
1 parent fb0c35f commit 06884cf

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Run Continuous Integration
2+
on:
3+
push:
4+
branches: [main]
5+
pull_request:
6+
branches: [main]
7+
jobs:
8+
ci:
9+
runs-on: "ubuntu-latest"
10+
strategy:
11+
matrix:
12+
python-version: ["3.10", "3.11", "3.12", "3.13"]
13+
django-version: ["4.2", "5.0", "5.1"]
14+
steps:
15+
- name: Checkout repository
16+
uses: actions/checkout@v4
17+
- name: Install uv
18+
uses: astral-sh/setup-uv@v5
19+
- name: Setup Python ${{ matrix.python-version }}
20+
uses: actions/setup-python@v5
21+
with:
22+
python-version: ${{ matrix.python-version }}
23+
- name: Install dependencies
24+
run: |
25+
uv sync
26+
uv pip install django==${{ matrix.django-version }}
27+
- name: Run linting
28+
run: uv run ruff check
29+
- name: Run tests
30+
run: uv run pytest
31+

0 commit comments

Comments
 (0)