Use GitHub actions for CI (#7)

This commit is contained in:
François Voron
2019-10-13 19:01:39 +02:00
committed by GitHub
parent 99dca57dbb
commit c111f00318
3 changed files with 29 additions and 15 deletions

28
.github/workflows/test.yml vendored Normal file
View File

@ -0,0 +1,28 @@
name: Unit tests
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python_version: [3.7]
steps:
- uses: actions/checkout@v1
- name: Set up Python 3.7
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python_version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pipenv
pipenv install --dev
- name: Test with pytest
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
pipenv run pytest --cov=./
pipenv run codecov