mirror of
https://github.com/samschott/maestral.git
synced 2024-09-22 19:42:53 +03:00
upload code coverage on pull_request_target
This commit is contained in:
parent
35354d67f9
commit
d16863c660
18
.github/workflows/test.yml
vendored
18
.github/workflows/test.yml
vendored
@ -118,8 +118,9 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
pytest -v --reruns 5 --cov=maestral --cov-report=xml tests/linked
|
pytest -v --reruns 5 --cov=maestral --cov-report=xml tests/linked
|
||||||
|
|
||||||
- name: Upload coverage to Codecov
|
- name: Upload Code Coverage
|
||||||
uses: codecov/codecov-action@v1
|
uses: codecov/codecov-action@v1
|
||||||
|
if: github.event_name != 'pull_request_target'
|
||||||
with:
|
with:
|
||||||
file: ./coverage.xml
|
file: ./coverage.xml
|
||||||
flags: pytest
|
flags: pytest
|
||||||
@ -129,3 +130,18 @@ jobs:
|
|||||||
OS: ${{ matrix.platform }}
|
OS: ${{ matrix.platform }}
|
||||||
PYTHON: ${{ matrix.python-version }}
|
PYTHON: ${{ matrix.python-version }}
|
||||||
TYPE: 'linked'
|
TYPE: 'linked'
|
||||||
|
|
||||||
|
- name: Upload Code Coverage for PR-target
|
||||||
|
uses: codecov/codecov-action@v1
|
||||||
|
if: github.event_name == 'pull_request_target'
|
||||||
|
with:
|
||||||
|
override_pr: ${{ github.event.number }}
|
||||||
|
override_sha: ${{ github.event.pull_request.head.sha }}
|
||||||
|
file: ./coverage.xml
|
||||||
|
flags: pytest
|
||||||
|
env_vars: OS,PYTHON,TYPE
|
||||||
|
name: pytests
|
||||||
|
env:
|
||||||
|
OS: ${{ matrix.platform }}
|
||||||
|
PYTHON: ${{ matrix.python-version }}
|
||||||
|
TYPE: 'linked'
|
||||||
|
Loading…
Reference in New Issue
Block a user