Skip to content

Commit

Permalink
Merge pull request #150 from moggers87/github-actions
Browse files Browse the repository at this point in the history
Move to github workflows
  • Loading branch information
moggers87 committed Feb 28, 2021
2 parents 3f063c6 + 3a01abf commit ff09f88
Show file tree
Hide file tree
Showing 4 changed files with 60 additions and 44 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/tests.yml
@@ -0,0 +1,49 @@
name: Tests

on:
pull_request:
branches:
- master
push:
branches:
- master
schedule:
- cron: '02 08 * * *'

jobs:
unit-tests:
runs-on: ${{ matrix.os }}
strategy:
matrix:
python-version: [3.5, 3.6, 3.7, 3.8, 3.9, pypy3]
os: [ubuntu-latest, macos-latest]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install tox
run: pip install tox tox-gh-actions
- name: Run tox
run: tox
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v1

misc:
runs-on: ubuntu-latest
strategy:
matrix:
tox_env: [lint, isort, docs]
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: 3.8
- name: Install tox
run: pip install tox
- name: Run tox
run: tox -e ${{ matrix.tox_env }}
18 changes: 9 additions & 9 deletions .gitignore
@@ -1,14 +1,14 @@
*.egg*
*.pyc
.*.sw*
/logs
/run
/env
/build
/dist
*.egg*
/tests/*.db
/.coverage
/.tox
/htmlcov

/build
/coverage.xml
/dist
/docs/_build
/env
/htmlcov
/logs
/run
/tests/*.db
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

3 changes: 2 additions & 1 deletion tox.ini
Expand Up @@ -3,13 +3,14 @@ envlist =
docs
lint
isort
py{35,36,37,38}
py{35,36,37,38,39,py3}

[testenv]
commands =
python --version
coverage run --branch setup.py test
coverage report
coverage xml
deps =
coverage
jinja2<3
Expand Down

0 comments on commit ff09f88

Please sign in to comment.