Skip to content

Commit 104d51e

Browse files
committed
Coverage action
1 parent c77977f commit 104d51e

File tree

1 file changed

+57
-0
lines changed

1 file changed

+57
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
2+
# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
3+
4+
name: "Coverage"
5+
6+
on:
7+
push:
8+
branches: ["master"]
9+
pull_request:
10+
workflow_dispatch:
11+
12+
defaults:
13+
run:
14+
shell: bash
15+
16+
jobs:
17+
coverage:
18+
name: "Python ${{ matrix.python-version }}"
19+
runs-on: ubuntu-latest
20+
21+
strategy:
22+
matrix:
23+
python-version:
24+
- "2.7"
25+
- "3.5"
26+
- "3.9"
27+
- "pypy3"
28+
fail-fast: false
29+
30+
steps:
31+
- name: "Check out the repo"
32+
uses: "actions/checkout@v2"
33+
34+
- name: "Set up Python"
35+
uses: "actions/setup-python@v2"
36+
with:
37+
python-version: "${{ matrix.python-version }}"
38+
39+
- name: "Install dependencies"
40+
run: |
41+
set -xe
42+
python -VV
43+
python -m site
44+
python -m pip install -r requirements/ci.pip
45+
python -m pip install -c requirements/pins.pip tox-gh-actions
46+
47+
- name: "Run tox coverage for ${{ matrix.python-version }}"
48+
env:
49+
COVERAGE_COVERAGE: "yes"
50+
run: |
51+
python -m tox
52+
python -m igor combine_html
53+
54+
- name: "Upload to codecov"
55+
uses: codecov/codecov-action@v1
56+
with:
57+
file: coverage.xml

0 commit comments

Comments
 (0)