Replace Travis with Github actions

This commit is contained in:
Pierre Ossman 2021-02-08 11:02:48 +01:00
parent f7b0867471
commit e4e85f8082
2 changed files with 30 additions and 9 deletions

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

@ -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

View File

@ -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