Skip to content

Commit a0f3674

Browse files
committed
IMPROVEMENT: make codecov run faster
1 parent 5869db0 commit a0f3674

File tree

1 file changed

+12
-22
lines changed

1 file changed

+12
-22
lines changed

.github/workflows/codecov.yml

Lines changed: 12 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,29 @@
11
name: Codecov
22

3-
on:
4-
push:
5-
branches:
6-
- master
7-
pull_request:
8-
branches:
9-
- master
10-
3+
on: [push, pull_request, workflow_dispatch]
114
jobs:
12-
codecov:
5+
run:
136
runs-on: ubuntu-latest
14-
157
steps:
16-
- name: Checkout code
8+
- name: Checkout
179
uses: actions/checkout@v4
18-
10+
with:
11+
fetch-depth: 0
1912
- name: Set up Python 3.12
2013
uses: actions/setup-python@v4
2114
with:
22-
python-version: "3.12"
23-
15+
python-version: '3.12'
2416
- name: Install dependencies
2517
run: |
2618
python -m pip install --upgrade pip setuptools wheel
27-
python -m pip install -U pymavlink pytest pytest-cov coverage mock
28-
pip install build
29-
pip install -U .
19+
python -m pip install pymavlink pytest pytest-cov coverage mock
3020
31-
- name: Test with unittest
32-
run: |
33-
coverage run -m pytest
34-
coverage xml -o unittests/coverage.xml
21+
- name: Run tests and collect coverage
22+
run: pytest --cov MethodicConfigurator
3523

3624
- name: Upload coverage report
3725
uses: codecov/[email protected]
3826
with:
39-
token: ${{ secrets.CODECOV_TOKEN }}
27+
verbose: true
28+
env:
29+
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 commit comments

Comments
 (0)