feat: added codecov
This commit is contained in:
@@ -7,7 +7,7 @@ jobs:
|
||||
fail-fast: false
|
||||
matrix:
|
||||
python-version: ["3.10", "3.11"]
|
||||
os: [ubuntu-20.04]
|
||||
os: [ubuntu-22.04]
|
||||
runs-on: ${{ matrix.os }}
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
@@ -19,4 +19,9 @@ jobs:
|
||||
- name: Run tests
|
||||
env:
|
||||
DJANGO_SETTINGS_MODULE: config.settings.develop
|
||||
run: pytest --cov && coverage xml
|
||||
run: pytest --cov && coverage xml && bash <(curl -s https://codecov.io/bash)
|
||||
- name: Upload coverage reports to Codecov
|
||||
uses: codecov/codecov-action@v4.0.1
|
||||
with:
|
||||
token: ${{ secrets.CODECOV_TOKEN }}
|
||||
slug: pablo-moreno/shop
|
||||
|
||||
Reference in New Issue
Block a user