Skip to content

Commit

Permalink
馃懛 GitHub workflows: pythonpackage.yml
Browse files Browse the repository at this point in the history
Add `.github/workflows/pythonpackage.yml`
Add workflow for running test coverage
  • Loading branch information
hayesall committed Aug 14, 2019
1 parent 09a8e38 commit a29c874
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: Python package

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [2.7, 3.5, 3.6, 3.7]

steps:
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r rfgb/tests/requirements.txt
- name: Coverage test with unittest
run: |
pip install coverage
coverage run rfgb/tests/tests.py

0 comments on commit a29c874

Please sign in to comment.