-
Notifications
You must be signed in to change notification settings - Fork 7
57 lines (47 loc) · 1.18 KB
/
ci.yml
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
48
49
50
51
52
53
54
55
56
57
name: CI
on:
pull_request:
paths-ignore:
- "**/*.lock"
- "**/*.md"
- worf/__init__.py
push:
branches:
- master
- package-updates
schedule:
- cron: "0 0 * * *"
workflow_dispatch: ~
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
cancel-in-progress: true
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python: [3.9, "3.10", 3.11]
django: [3.2, "4.0", 4.1]
exclude:
- python: 3.11
django: 3.2
- python: 3.11
django: 4.0
steps:
- uses: actions/checkout@v3
- run: pipx install poetry
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
cache: poetry
- run: poetry install --only main,test
- run: poetry run pip install django~=${{ matrix.django }}.0 --disable-pip-version-check
- run: poetry run pytest --cov
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
- run: pipx install poetry
- run: poetry install --only lint
- run: poetry run script/check