Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Github Actions workflow for testing
- Loading branch information
1 parent
1818671
commit 99995b1
Showing
3 changed files
with
51 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions | ||
|
||
name: Test | ||
|
||
on: | ||
push: | ||
branches: [master] | ||
pull_request: | ||
branches: [master] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python-version: [3.5, 3.6, 3.7, 3.8] | ||
django-version: [1.11, 2.2, 3.0] | ||
exclude: | ||
- python-version: 3.5 | ||
django-version: 3.0 | ||
- python-version: 3.8 | ||
django-version: 1.11 | ||
|
||
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: | | ||
pip install -q Django==${{ matrix.django-version }} | ||
pip install coverage | ||
pip install -e git://github.com/django-nose/django-nose.git#egg=django-nose | ||
pip install -q -e . | ||
pip install coveralls | ||
- name: Run tests | ||
run: | | ||
python runtests.py |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters