-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Michael Howitz
committed
Nov 13, 2020
1 parent
652b681
commit 815752c
Showing
1 changed file
with
49 additions
and
0 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,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'}} |