|
a |
|
b/.github/workflows/tests_run.yml |
|
|
1 |
name: "Pull Request Tests Run" |
|
|
2 |
|
|
|
3 |
on: |
|
|
4 |
- pull_request |
|
|
5 |
- push |
|
|
6 |
|
|
|
7 |
jobs: |
|
|
8 |
tests: |
|
|
9 |
runs-on: ubuntu-latest |
|
|
10 |
strategy: |
|
|
11 |
matrix: |
|
|
12 |
python-version: [3.8] |
|
|
13 |
|
|
|
14 |
steps: |
|
|
15 |
- uses: actions/checkout@v2 |
|
|
16 |
- name: Install openslide |
|
|
17 |
run: sudo apt-get install openslide-tools |
|
|
18 |
- name: Set up Python ${{ matrix.python-version }} |
|
|
19 |
uses: actions/setup-python@v1 |
|
|
20 |
with: |
|
|
21 |
python-version: ${{ matrix.python-version }} |
|
|
22 |
- name: Install dependencies |
|
|
23 |
run: pip install tox |
|
|
24 |
- name: Test with tox |
|
|
25 |
run: tox -e py |
|
|
26 |
- uses: codecov/codecov-action@v2 |
|
|
27 |
with: |
|
|
28 |
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos |
|
|
29 |
files: ./coverage.xml |
|
|
30 |
flags: unittests # optional |
|
|
31 |
fail_ci_if_error: true # optional (default = false) |
|
|
32 |
verbose: true # optional (default = false) |