Skip to content

Using GH actions for unit tests in place of travis #260

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 21 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions .github/workflows/UnitTesting.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Unit Testing
on:
push:
branches:
- master
pull_request:
branches:
- master

jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python: [2.7, 3.5, 3.6, 3.7, 3.8]

steps:
- name: Checkout repo
uses: actions/checkout@v2

- name: Setup Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox tox-gh-actions

- name: Run tests with Tox
run: tox
22 changes: 0 additions & 22 deletions .travis.yml

This file was deleted.

10 changes: 9 additions & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,18 @@ envlist =
py{36,37,38}-django31
coverage-report

[gh-actions]
python =
2.7: py27
3.5: py35
3.6: py36
3.7: py37
3.8: py38

skip_missing_interpreters = True

[testenv]
passenv = TOXENV CI TRAVIS TRAVIS_* CODECOV_*
passenv = TOXENV CI CODECOV_* GITHUB_*
deps =
pytest > 3.0.0
coverage==4.5.4
Expand Down