mirror of
https://github.com/django-components/django-components.git
synced 2025-11-20 06:45:32 +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
|
||||
Loading…
Add table
Add a link
Reference in a new issue