mirror of
https://github.com/jazzband/django-analytical.git
synced 2026-03-16 22:20:25 +00:00
Split up test matrix into Python-Django combinations
This commit is contained in:
parent
e4399d63a1
commit
5daa0c5329
2 changed files with 23 additions and 6 deletions
22
.github/workflows/test.yml
vendored
22
.github/workflows/test.yml
vendored
|
|
@ -1,6 +1,8 @@
|
|||
name: Test
|
||||
|
||||
on: [push, pull_request]
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
|
||||
jobs:
|
||||
build:
|
||||
|
|
@ -8,7 +10,16 @@ jobs:
|
|||
strategy:
|
||||
max-parallel: 5
|
||||
matrix:
|
||||
python-version: ['3.6', '3.7', '3.8', '3.9', '3.10']
|
||||
python-version:
|
||||
- '3.6'
|
||||
- '3.7'
|
||||
- '3.8'
|
||||
- '3.9'
|
||||
- '3.10'
|
||||
django-version:
|
||||
- '2.2'
|
||||
- '3.2'
|
||||
- '4.0'
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
@ -37,9 +48,10 @@ jobs:
|
|||
python -m pip install --upgrade pip
|
||||
python -m pip install --upgrade tox tox-gh-actions
|
||||
|
||||
- name: Tox tests
|
||||
run: |
|
||||
tox -v
|
||||
- name: "Unit tests for py${{ matrix.python-version }}-django${{ matrix.django-version }}"
|
||||
run: tox
|
||||
env:
|
||||
DJANGO: ${{ matrix.django-version }}
|
||||
|
||||
- name: Upload coverage
|
||||
uses: codecov/codecov-action@v1
|
||||
|
|
|
|||
7
tox.ini
7
tox.ini
|
|
@ -12,7 +12,6 @@ deps =
|
|||
coverage
|
||||
pytest-django
|
||||
django22: Django>=2.2,<3.0
|
||||
django31: Django>=3.1,<3.2
|
||||
django32: Django>=3.2,<4.0
|
||||
django40: Django>=4.0a1,<4.1
|
||||
|
||||
|
|
@ -28,6 +27,12 @@ python =
|
|||
3.9: py39
|
||||
3.10: py310
|
||||
|
||||
[gh-actions:env]
|
||||
DJANGO =
|
||||
2.2: django22
|
||||
3.2: django32
|
||||
4.0: django40
|
||||
|
||||
[testenv:py37-bandit]
|
||||
description = PyCQA security linter
|
||||
deps = bandit<1.6
|
||||
|
|
|
|||
Loading…
Reference in a new issue