Skip to content

Commit

Permalink
IMPROVEMENT: make codecov run faster
Browse files Browse the repository at this point in the history
  • Loading branch information
amilcarlucas committed Jun 12, 2024
1 parent 5869db0 commit a0f3674
Showing 1 changed file with 12 additions and 22 deletions.
34 changes: 12 additions & 22 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
@@ -1,39 +1,29 @@
name: Codecov

on:
push:
branches:
- master
pull_request:
branches:
- master

on: [push, pull_request, workflow_dispatch]
jobs:
codecov:
run:
runs-on: ubuntu-latest

steps:
- name: Checkout code
- name: Checkout
uses: actions/checkout@v4

with:
fetch-depth: 0
- name: Set up Python 3.12
uses: actions/setup-python@v4
with:
python-version: "3.12"

python-version: '3.12'
- name: Install dependencies
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -U pymavlink pytest pytest-cov coverage mock
pip install build
pip install -U .
python -m pip install pymavlink pytest pytest-cov coverage mock
- name: Test with unittest
run: |
coverage run -m pytest
coverage xml -o unittests/coverage.xml
- name: Run tests and collect coverage
run: pytest --cov MethodicConfigurator

- name: Upload coverage report
uses: codecov/codecov-action@v4.0.1
with:
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}

0 comments on commit a0f3674

Please sign in to comment.