Run tests in GitHub Actions instead of Travis-CI (#89)

* Replace travis-ci with Actions

* Update README.md

* Add stdout to assertion failure
This commit is contained in:
Dave Gallant
2021-05-01 13:07:55 -04:00
committed by GitHub
parent 85466249de
commit 12b12c5914
5 changed files with 51 additions and 72 deletions

25
.github/workflows/tests.yml vendored Normal file
View File

@@ -0,0 +1,25 @@
name: Tests
on: [push]
jobs:
build:
strategy:
matrix:
python-version: [3.6, 3.7, 3.8, 3.9]
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install .
pip install -r requirements_dev.txt
- name: Run pre-commit
run: |
git diff --name-only $TRAVIS_COMMIT_RANGE | xargs pre-commit run --files
- name: Test
run: make ci