Skip to content

Commit 5c467d1

Browse files
Merge pull request #28 from pusher/gh-actions
Replace travis config with gh actions
2 parents 41300ee + 7e2c6f7 commit 5c467d1

File tree

3 files changed

+38
-14
lines changed

3 files changed

+38
-14
lines changed

.github/workflows/ci.yml

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Python package
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-20.04
12+
strategy:
13+
matrix:
14+
python-version: [2.7, 3.6]
15+
16+
steps:
17+
- uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 2
20+
- name: Set up Python ${{ matrix.python-version }}
21+
uses: actions/setup-python@v2
22+
with:
23+
python-version: ${{ matrix.python-version }}
24+
- name: Install dependencies
25+
run: |
26+
python -m pip install --upgrade pip
27+
python -m pip install -r dev_requirements.txt
28+
python -m pip install -r requirements.txt
29+
- name: Lint Code
30+
run: python -m pylint ./pusher_push_notifications/*.py
31+
- name: Lint Docs
32+
run: python setup.py checkdocs
33+
- name: Test
34+
run: python -m nose -s --with-coverage
35+
- name: Upload coverage
36+
uses: codecov/codecov-action@v1

.travis.yml

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

dev_requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
nose==1.3.7
2-
pylint==1.9.4
2+
pylint==1.9.4; python_version < '3.0'
3+
pylint==2.6.0; python_version > '3.5'
34
requests-mock==1.5.2
45
collective.checkdocs==0.2
56
codecov==2.0.15

0 commit comments

Comments
 (0)