Replace Travis CI with GitHub Actions

This commit is contained in:
Grigori Goronzy 2021-01-02 15:24:46 +01:00
parent 5d3214060b
commit 77b3f0e1b7
2 changed files with 30 additions and 16 deletions

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

@ -0,0 +1,30 @@
name: Python package
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.4, 3.7, 3.8]
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
pip install pyusb coverage coveralls pyserial PyYAML tqdm
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Build package
run: |
python setup.py build
- name: Test with unittest
run: |
coverage run --source=stcgal setup.py test
coveralls

View File

@ -1,16 +0,0 @@
sudo: required
dist: trusty
language: python
cache:
- pip
python:
- "3.4"
- "3.5"
- "3.6"
#- "pypy3"
install:
- pip install pyusb coverage coveralls pyserial PyYAML tqdm
script:
- python setup.py build
- coverage run --source=stcgal setup.py test
- coveralls