mirror of
https://github.com/django-components/django-components.git
synced 2025-09-26 15:39:08 +00:00
Upgrade CI to latest version, and simplify tox.ini
This commit is contained in:
parent
d658fecf5c
commit
196c748a9f
2 changed files with 21 additions and 21 deletions
26
.github/workflows/tests.yml
vendored
26
.github/workflows/tests.yml
vendored
|
@ -1,28 +1,26 @@
|
|||
name: Run tests
|
||||
|
||||
on: [push, pull_request, workflow_dispatch]
|
||||
on:
|
||||
- push
|
||||
- pull_request
|
||||
- workflow_dispatch
|
||||
|
||||
jobs:
|
||||
run-tests:
|
||||
runs-on: ubuntu-20.04
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
strategy:
|
||||
matrix:
|
||||
python-version:
|
||||
- "3.6"
|
||||
- "3.7"
|
||||
- "3.8"
|
||||
- "3.9"
|
||||
- "3.10"
|
||||
python-version: ['3.7', '3.8', '3.9', '3.10']
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: actions/checkout@v3
|
||||
- name: Set up Python ${{ matrix.python-version }}
|
||||
uses: actions/setup-python@v2
|
||||
uses: actions/setup-python@v4
|
||||
with:
|
||||
python-version: ${{ matrix.python-version }}
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install tox tox-gh-actions
|
||||
python -m pip install tox tox-gh-actions
|
||||
- name: Run tests
|
||||
run: |
|
||||
tox
|
||||
run: tox -vv
|
16
tox.ini
16
tox.ini
|
@ -3,18 +3,20 @@
|
|||
|
||||
[tox]
|
||||
envlist =
|
||||
py{36,37}-django{32}
|
||||
py{38,39}-django{32,40}
|
||||
py36-django{32}
|
||||
py37-django{32}
|
||||
py38-django{32,40}
|
||||
py39-django{32,40}
|
||||
py310-django{40}
|
||||
flake8
|
||||
isort
|
||||
|
||||
[gh-actions]
|
||||
3.6 = py36-django{32}
|
||||
3.7 = py37-django{32}
|
||||
3.8 = py38-django{32,40}
|
||||
3.9 = py39-django{32,40}
|
||||
3.10 = py310-django{40}, flake8, isort
|
||||
3.6 = py36
|
||||
3.7 = py37
|
||||
3.8 = py38
|
||||
3.9 = py39
|
||||
3.10 = py310, flake8, isort
|
||||
|
||||
[testenv]
|
||||
deps =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue