Skip to content

Commit

Permalink
Merge pull request #397 from chinapandaman/PPF-396
Browse files Browse the repository at this point in the history
PPF-396: reduce number of times coverage is uploaded
  • Loading branch information
chinapandaman authored Oct 24, 2023
2 parents 3baa362 + 1acc693 commit 993631e
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 3 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/python-coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# This workflow will install Python dependencies, run tests and lint with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Coverage

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
build:

runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.11
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
coverage run -m pytest
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
4 changes: 1 addition & 3 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,4 @@ jobs:
pip install -r requirements.txt
- name: Test with pytest
run: |
coverage run -m pytest -v -s
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
pytest

0 comments on commit 993631e

Please sign in to comment.