Skip to content

Commit

Permalink
Add GitHub actions workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Gadgetoid committed Nov 14, 2020
1 parent 80810d2 commit b6d6d82
Showing 1 changed file with 37 additions and 0 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/test.yml
@@ -0,0 +1,37 @@
name: Python Tests

on:
pull_request:
push:
branches:
- master

jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python: [2.7, 3.4, 3.5, 3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python }}
- name: Install Dependencies
run: |
python -m pip install --upgrade setuptools tox
- name: Run Tests
working-directory: library
run: |
tox -e py
- name: Coverage
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
working-directory: library
run: |
python -m pip install coveralls
coveralls
if: ${{ matrix.python == '3.8' }}

0 comments on commit b6d6d82

Please sign in to comment.