Skip to content

Commit c4f5e80

Browse files
authored
Merge pull request #88 from pimoroni/actions
Add GitHub actions workflow
2 parents 744cecb + 051aec5 commit c4f5e80

File tree

2 files changed

+37
-25
lines changed

2 files changed

+37
-25
lines changed

.github/workflows/test.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Python Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches:
7+
- master
8+
9+
jobs:
10+
test:
11+
runs-on: ubuntu-latest
12+
strategy:
13+
matrix:
14+
python: [2.7, 3.4, 3.5, 3.7, 3.8]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
- name: Set up Python ${{ matrix.python }}
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: ${{ matrix.python }}
22+
- name: Install Dependencies
23+
run: |
24+
python -m pip install --upgrade setuptools tox
25+
- name: Run Tests
26+
working-directory: library
27+
run: |
28+
tox -e py
29+
- name: Coverage
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
32+
working-directory: library
33+
run: |
34+
python -m pip install coveralls
35+
coveralls
36+
if: ${{ matrix.python == '3.8' }}
37+

.travis.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

0 commit comments

Comments
 (0)