Skip to content

Commit 7a76d21

Browse files
committed
added ci
1 parent 9c027c0 commit 7a76d21

File tree

3 files changed

+66
-0
lines changed

3 files changed

+66
-0
lines changed

.github/workflows/black.yaml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
name: black
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
lint:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: psf/black@stable
11+
with:
12+
options: "--check --verbose"
13+

.github/workflows/ci.yaml

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: CI
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
timeout-minutes: 20
9+
strategy:
10+
fail-fast: false
11+
matrix:
12+
python-version:
13+
- '3.9'
14+
- '3.10'
15+
- '3.11'
16+
- '3.12'
17+
- '3.13'
18+
django-version:
19+
- '4.2'
20+
- '5.0'
21+
- '5.1'
22+
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- name: set up python ${{ matrix.python-version }}
27+
uses: actions/setup-python@v5
28+
with:
29+
python-version: ${{ matrix.python-version }}
30+
31+
- name: Install poetry
32+
uses: abatilo/actions-poetry@v3
33+
34+
- name: install dependencies
35+
run: |
36+
poetry config virtualenvs.create true --local
37+
poetry config virtualenvs.in-project true --local
38+
poetry install --no-interaction --all-extras --with dev
39+
poetry add django==${{ matrix.django-version }}
40+
41+
- name: run tests
42+
run: |
43+
poetry run pytest -xvv
44+
45+

.github/workflows/ruff.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
name: ruff
2+
on: [push, pull_request]
3+
jobs:
4+
ruff:
5+
runs-on: ubuntu-latest
6+
steps:
7+
- uses: actions/checkout@v4
8+
- uses: chartboost/ruff-action@v1

0 commit comments

Comments
 (0)