Skip to content

Commit bfb0943

Browse files
committed
Added coverage tests to Github actions
1 parent 9c26615 commit bfb0943

1 file changed

Lines changed: 31 additions & 1 deletion

File tree

.github/workflows/github-actions.yml

Lines changed: 31 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,34 @@ jobs:
2727
shell: bash
2828
- name: Run Unit Tests
2929
run: ./test.sh unit
30-
shell: bash
30+
shell: bash
31+
jobs:
32+
coverage-testing:
33+
runs-on: ${{ matrix.os }}
34+
strategy:
35+
matrix:
36+
os: [ubuntu-latest, macos-latest, windows-latest]
37+
python-version: ['3.6', '3.7', '3.8']
38+
steps:
39+
- uses: actions/checkout@v2
40+
- name: Set Up Python
41+
uses: actions/setup-python@v2
42+
with:
43+
python-version: ${{ matrix.python-version }}
44+
- name: Display Python Version
45+
run: python -c "import sys; print(sys.version)"
46+
shell: bash
47+
- name: Install STUMPY And Other Dependencies
48+
run: pip install --editable .[ci]
49+
shell: bash
50+
- name: Run Black
51+
run: black --check --diff ./
52+
shell: bash
53+
- name: Run Flake8
54+
run: flake8 ./
55+
shell: bash
56+
- name: Run Coverage Tests
57+
run: ./test.sh coverage
58+
shell: bash
59+
- name: Upload Coverage Tests Results
60+
uses: codecov/codecov-action@v1

0 commit comments

Comments
 (0)