-
Notifications
You must be signed in to change notification settings - Fork 122
43 lines (41 loc) · 1.2 KB
/
python-package.yml
File metadata and controls
43 lines (41 loc) · 1.2 KB
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: Python package
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
env:
PYTHONDEVMODE: 1
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
django-version:
- '>=5.2,<5.3'
- '>=5.1,<5.2'
- '>=5.0,<5.1'
- '>=4.2,<4.3'
exclude:
- python-version: '3.9'
django-version: '>=5.2,<5.3'
- python-version: '3.9'
django-version: '>=5.1,<5.2'
- python-version: '3.9'
django-version: '>=5.0,<5.1'
fail-fast: false
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 (Django ${{ matrix.django-version }})
run: |
python -m pip install --upgrade pip
python -m pip install --pre django'${{ matrix.django-version }}'
python -m pip install flake8 coverage -e .
- name: Lint with flake8
run: |
flake8
- name: Test with unittest
run: |
coverage run tests/manage.py test django_python3_ldap
coverage report