-
-
Notifications
You must be signed in to change notification settings - Fork 77
62 lines (54 loc) · 1.61 KB
/
test.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
58
59
60
61
62
name: Unit Test
on: [push]
jobs:
unit-tests:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [
"3.9",
"3.10",
"3.11",
"3.12",
"3.13",
]
django-version: [
"django>=4.2,<5.0",
"django>=5.0,<5.1",
"django>=5.1,<5.2",
]
# What Python version can I use with Django? https://docs.djangoproject.com/en/dev/faq/install/#what-python-version-can-i-use-with-django
exclude:
- python-version: "3.9"
django-version: "django>=5.0,<5.1"
- python-version: "3.9"
django-version: "django>=5.1,<5.2"
- python-version: "3.13"
django-version: "django>=4.2,<5.0"
- python-version: "3.13"
django-version: "django>=5.0,<5.1"
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip setuptools wheel --quiet
pip install "${{ matrix.django-version }}" --quiet
python setup.py install
pip install flake8
pip install coverage
- name: Analyze code with flake8
continue-on-error: false
run: |
flake8
- name: Django Unit Testing
id: unittest
continue-on-error: false
run: |
coverage run --source='.' quicktest.py django_classified
- name: Generate Coverage Report
run: |
coverage report --show-missing