Skip to content
This repository was archived by the owner on Jul 11, 2022. It is now read-only.

Commit 923c455

Browse files
authored
Add github action for CI tests (#296)
* Add github action for CI tests Signed-off-by: Ashmita Bohara <[email protected]> * Feedbacks Signed-off-by: Ashmita Bohara <[email protected]>
1 parent 4cde94a commit 923c455

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed

.github/workflows/ci-tests.yml

Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
name: CI Tests
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
ci-tests:
11+
env:
12+
VIRTUAL_ENV: github
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
version:
17+
- python: "2.7"
18+
tornado: ">=4,<5"
19+
- python: "2.7"
20+
tornado: ">=5,<6"
21+
- python: "3.5"
22+
tornado: ">=4,<5"
23+
- python: "3.5"
24+
tornado: ">=5,<6"
25+
- python: "3.5"
26+
tornado: ">=6"
27+
- python: "3.6"
28+
tornado: ">=4,<5"
29+
- python: "3.6"
30+
tornado: ">=5,<6"
31+
- python: "3.6"
32+
tornado: ">=6"
33+
- python: "3.7"
34+
tornado: ">=4,<5"
35+
- python: "3.7"
36+
tornado: ">=5,<6"
37+
- python: "3.7"
38+
tornado: ">=6"
39+
name: ci-tests (py ${{ matrix.version.python }} tornado ${{ matrix.version.tornado }})
40+
steps:
41+
- uses: actions/checkout@v2
42+
with:
43+
submodules: true
44+
45+
- uses: actions/setup-python@v2
46+
with:
47+
python-version: ${{ matrix.version.python }}
48+
49+
- name: Export TORNADO variable
50+
run: |
51+
echo "TORNADO=${{ matrix.version.tornado }}" >> $GITHUB_ENV
52+
53+
- name: Install pycurl dependencies
54+
run: sudo apt-get install libgnutls28-dev libcurl4-openssl-dev libssl-dev
55+
56+
- name: Install dependencies
57+
run: make bootstrap
58+
59+
- name: Run tests
60+
run: make test_ci
61+
62+
- name: Upload coverage to codecov
63+
uses: codecov/codecov-action@v1
64+
with:
65+
verbose: true

0 commit comments

Comments
 (0)