Skip to content

Commit df1970c

Browse files
Create test.yml
1 parent 4ebd894 commit df1970c

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/test.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
name: Build & Test
2+
3+
on:
4+
push:
5+
branches: [ master ]
6+
pull_request:
7+
branches: [ master ]
8+
9+
jobs:
10+
build:
11+
env:
12+
SONAR_SCANNER_VERSION: 3.3.0.1492
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
python-version: [3.6, 3.7, 3.8]
17+
18+
steps:
19+
- uses: actions/checkout@v2
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+
pip3 install -r requirements.txt
27+
pip3 install .
28+
pip3 install coverage
29+
- name: Run Tests
30+
run: |
31+
coverage run setup.py test
32+
coverage xml

0 commit comments

Comments
 (0)