Skip to content

Commit 1e1ffa3

Browse files
authored
Merge pull request #168 from Vonage/github-actions
Add GH Actions
2 parents 86ef8a4 + de7dbf8 commit 1e1ffa3

File tree

3 files changed

+40
-25
lines changed

3 files changed

+40
-25
lines changed

.github/workflows/build.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Build
2+
on:
3+
push:
4+
branches:
5+
- master
6+
pull_request:
7+
types: [opened, synchronize, reopened]
8+
jobs:
9+
test:
10+
name: Test
11+
runs-on: ${{ matrix.os }}
12+
strategy:
13+
fail-fast: false
14+
matrix:
15+
python: ["3.4", "3.5", "3.6", "3.7", "3.8"]
16+
os: ["ubuntu-latest", "macos-latest", "windows-latest"]
17+
exclude:
18+
- os: "windows-latest"
19+
python: "3.4"
20+
- os: "windows-latest"
21+
python: "3.8"
22+
- os: "macos-latest"
23+
python: "3.4"
24+
steps:
25+
- uses: actions/setup-python@v2
26+
with:
27+
python-version: ${{ matrix.python }}
28+
- name: Clone repo
29+
uses: actions/checkout@v2
30+
- name: Install dependencies
31+
run: make install
32+
- name: Run tests
33+
run: make coverage
34+
- name: Coveralls
35+
run: coveralls
36+
env:
37+
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_TOKEN }}

.travis.yml

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

Makefile

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,6 @@ install: requirements
2121
requirements: .requirements.txt
2222

2323
.requirements.txt: requirements.txt
24-
pip install --upgrade pip setuptools
25-
pip install -r requirements.txt
26-
pip freeze > .requirements.txt
24+
python -m pip install --upgrade pip setuptools
25+
python -m pip install -r requirements.txt
26+
python -m pip freeze > .requirements.txt

0 commit comments

Comments
 (0)