mirror of
https://github.com/codecov/codecov-action.git
synced 2026-02-08 12:07:25 +00:00
Update and rename .github/iş akışları/worklflow.yml to .github/iş kolları/worklflow.yml
Signed-off-by: Erçetin Güler <ercetinguler@hotmail.com>
This commit is contained in:
parent
72e8b5b964
commit
15e8629022
2 changed files with 34 additions and 10 deletions
10
.github/iş akışları/worklflow.yml
vendored
10
.github/iş akışları/worklflow.yml
vendored
|
|
@ -1,10 +0,0 @@
|
|||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- uses: codecov/codecov-action@v2
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos
|
||||
files: ./coverage1.xml,./coverage2.xml # optional
|
||||
flags: unittests # optional
|
||||
name: codecov-umbrella # optional
|
||||
fail_ci_if_error: true # optional (default = false)
|
||||
verbose: true # optional (default = false)
|
||||
34
.github/iş kolları/worklflow.yml
vendored
Normal file
34
.github/iş kolları/worklflow.yml
vendored
Normal file
|
|
@ -0,0 +1,34 @@
|
|||
name: Example workflow for Codecov
|
||||
on: [push]
|
||||
jobs:
|
||||
run:
|
||||
runs-on: ${{ matrix.os }}
|
||||
strategy:
|
||||
matrix:
|
||||
os: [ubuntu-latest, macos-latest, windows-latest]
|
||||
env:
|
||||
OS: ${{ matrix.os }}
|
||||
PYTHON: '3.7'
|
||||
steps:
|
||||
- uses: actions/checkout@master
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@master
|
||||
with:
|
||||
python-version: 3.7
|
||||
- name: Generate coverage report
|
||||
run: |
|
||||
pip install pytest
|
||||
pip install pytest-cov
|
||||
pytest --cov=./ --cov-report=xml
|
||||
- name: Upload coverage to Codecov
|
||||
uses: codecov/codecov-action@v2
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
directory: ./coverage/reports/
|
||||
env_vars: OS,PYTHON
|
||||
fail_ci_if_error: true
|
||||
files: ./coverage1.xml,./coverage2.xml
|
||||
flags: unittests
|
||||
name: codecov-umbrella
|
||||
path_to_write_report: ./coverage/codecov_report.txt
|
||||
verbose: true
|
||||
Loading…
Reference in a new issue