Skip to content

Commit

Permalink
Initial coverage test, adds python badge to index
Browse files Browse the repository at this point in the history
  • Loading branch information
edgararuiz committed Oct 16, 2024
1 parent a4cfac2 commit dabd031
Show file tree
Hide file tree
Showing 4 changed files with 41 additions and 65 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/python-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Python coverage

on:
push:
branches: main

jobs:
python-tests:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v4
- name: Set up Python 3.13
uses: actions/setup-python@v5
with:
python-version: 3.13
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r python/requirements.txt
- name: Generate coverage report
run: |
pytest --cov=python --cov-report=xml
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v4
with:
directory: python/coverage/reports/
env_vars: OS,PYTHON
fail_ci_if_error: true
files: python/coverage1.xml,python/coverage2.xml,!python/cache
flags: unittests
name: codecov-umbrella
token: ${{ secrets.CODECOV_TOKEN }}
verbose: true
4 changes: 2 additions & 2 deletions .github/workflows/python-tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: Python tests

on:
push:
branches: main
branches: temp
pull_request:
branches: main
branches: temp

jobs:
python-tests:
Expand Down
Loading

0 comments on commit dabd031

Please sign in to comment.