Replace Travis with Github actions
This commit is contained in:
parent
f7b0867471
commit
e4e85f8082
|
@ -0,0 +1,30 @@
|
||||||
|
name: Test
|
||||||
|
|
||||||
|
on: [push, pull_request]
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
test:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
strategy:
|
||||||
|
matrix:
|
||||||
|
python-version:
|
||||||
|
- 3.4
|
||||||
|
- 3.5
|
||||||
|
- 3.6
|
||||||
|
- 3.7
|
||||||
|
- 3.8
|
||||||
|
- 3.9
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v2
|
||||||
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
|
uses: actions/setup-python@v2
|
||||||
|
with:
|
||||||
|
python-version: ${{ matrix.python-version }}
|
||||||
|
- name: Install dependencies
|
||||||
|
run: |
|
||||||
|
python -m pip install --upgrade pip
|
||||||
|
python -m pip install 'setuptools>=18.5,<=39.0.0'
|
||||||
|
python -m pip install -r test-requirements.txt
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
python setup.py nosetests --verbosity=3
|
|
@ -1,9 +0,0 @@
|
||||||
language: python
|
|
||||||
python:
|
|
||||||
- 3.6
|
|
||||||
|
|
||||||
install:
|
|
||||||
- pip install 'setuptools>=18.5,<=39.0.0'
|
|
||||||
- pip install -r test-requirements.txt
|
|
||||||
|
|
||||||
script: python3 setup.py nosetests --verbosity=3
|
|
Loading…
Reference in New Issue