Replace Travis CI with GitHub Actions
This commit is contained in:
parent
5d3214060b
commit
77b3f0e1b7
30
.github/workflows/python.yml
vendored
Normal file
30
.github/workflows/python.yml
vendored
Normal 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
|
16
.travis.yml
16
.travis.yml
@ -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
|
Loading…
Reference in New Issue
Block a user