Skip to content

Commit 2625cc4

Browse files
authored
Merge pull request #169 from pusher/github-actions
Replace travis with github actions
2 parents 72c3552 + 2a238bc commit 2625cc4

File tree

3 files changed

+32
-16
lines changed

3 files changed

+32
-16
lines changed

.github/workflows/test.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: Tests
2+
3+
on:
4+
pull_request:
5+
push:
6+
branches: [master, main]
7+
8+
jobs:
9+
test:
10+
runs-on: ubuntu-20.04
11+
strategy:
12+
fail-fast: false
13+
matrix:
14+
python: [2.7, 3.5, 3.6, 3.7, 3.8]
15+
16+
name: Python ${{ matrix.python }} Test
17+
18+
steps:
19+
- name: Checkout
20+
uses: actions/checkout@v2
21+
22+
- name: Setup Python
23+
uses: actions/setup-python@v2
24+
with:
25+
python-version: ${{ matrix.python }}
26+
27+
- name: Install dependencies
28+
run: pip install -r requirements.txt
29+
30+
- name: Run test suite
31+
run: python setup.py test

.travis.yml

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

pusher_tests/test_gae_adapter.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
else:
1313
import unittest
1414

15-
skip_test = (sys.version_info[0:2] != (2,7)) or os.environ.get("TRAVIS_PYTHON_VERSION")
15+
skip_test = (sys.version_info[0:2] != (2,7)) or os.environ.get("CI")
1616

1717
@unittest.skipIf(skip_test, "skip")
1818
class TestGAEBackend(unittest.TestCase):

0 commit comments

Comments
 (0)