-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #20 from richardbarran/github-actions
Switch CI tests from Travis to Github Actions.
- Loading branch information
Showing
6 changed files
with
64 additions
and
21 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,32 @@ | ||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions | ||
|
||
name: CI | ||
|
||
on: [ push, pull_request ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: [ 3.5, 3.6, 3.7 ] | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: Install dependencies | ||
run: pip install tox tox-gh-actions | ||
- name: Run tests | ||
run: tox | ||
- name: Coverage | ||
if: ${{ matrix.python == 3.7 }} | ||
run: | | ||
pip install coverage[toml] django==2.0 | ||
coverage run manage.py test --settings=test_settings | ||
- name: Upload coverage | ||
if: ${{ matrix.python == 3.7 }} | ||
uses: codecov/codecov-action@v1 | ||
with: | ||
name: Python ${{ matrix.python }} |
This file was deleted.
Oops, something went wrong.
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
[tox] | ||
envlist = | ||
py35-django110, | ||
{py35,py36,py37}-django111, | ||
{py35,py36,py37}-django20, | ||
|
||
[testenv] | ||
deps= | ||
django110: Django>=1.10,<1.11 | ||
django111: Django>=1.11,<2.0 | ||
django20: Django>=2.0,<2.1 | ||
|
||
commands= python manage.py test --settings=test_settings | ||
|
||
[gh-actions] | ||
python = | ||
3.5: py35 | ||
3.6: py36 | ||
3.7: py37 |