mirror of
https://github.com/django-components/django-components.git
synced 2025-09-26 15:39:08 +00:00
Add GitHub Action for running tests.
This commit is contained in:
parent
8b3760458b
commit
0ecf1fc45b
2 changed files with 33 additions and 1 deletions
32
.github/workflows/index.yml
vendored
Normal file
32
.github/workflows/index.yml
vendored
Normal file
|
@ -0,0 +1,32 @@
|
||||||
|
name: Build
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version:
|
||||||
|
- 2.7
|
||||||
|
- 3.4
|
||||||
|
- 3.5
|
||||||
|
- 3.6
|
||||||
|
- 3.7
|
||||||
|
- 3.8
|
||||||
|
- 3.9
|
||||||
|
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: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
pip install tox tox-gh-actions
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
tox
|
2
tox.ini
2
tox.ini
|
@ -10,7 +10,7 @@ envlist =
|
||||||
flake8
|
flake8
|
||||||
isort
|
isort
|
||||||
|
|
||||||
[tox:travis]
|
[gh-actions]
|
||||||
2.7 = py27-django111
|
2.7 = py27-django111
|
||||||
3.4 = py34-django{111,20}
|
3.4 = py34-django{111,20}
|
||||||
3.5 = py35-django{111,20,21,22}
|
3.5 = py35-django{111,20,21,22}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue