Skip to content

Commit

Permalink
Activate GH actions.
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Howitz committed Nov 13, 2020
1 parent 652b681 commit 815752c
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: run tests

on:
push:
schedule:
- cron: '* * * * 0' # run once a week (sunday)

jobs:
build:
strategy:
matrix:
python-version:
- "2.7"
- "3.5"
- "3.6"
- "3.7"
- "3.8"
- "3.9"
- "pypy2"
- "pypy3"
include:
- python-version: "3.8"
env:
- lint
- coverage

runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Pip cache
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles(setup.*', 'tox.ini') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install coveralls
- name: Test
run: tox -e {{ matrix.env || 'py'}}
- name: Coverage
run: coveralls
if: {{ matrix.env == 'coverage'}}

0 comments on commit 815752c

Please sign in to comment.