Skip to content

Commit

Permalink
MAINT: Update to codecov v4 and use tokens for all
Browse files Browse the repository at this point in the history
Ensures we use codecov V4 and have a token for each build pipeline too
  • Loading branch information
DavidFair committed Jul 2, 2024
1 parent d23281b commit 4999429
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/MonitoringTools.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: cd MonitoringTools && python3 -m pytest . --cov-report xml:coverage.xml --cov

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
files: ./MonitoringTools/coverage.xml
2 changes: 1 addition & 1 deletion .github/workflows/cloud_chatops.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ jobs:
run: cd cloud_chatops && python3 -m pytest . --cov-report xml:coverage.xml --cov

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
files: ./cloud_chatops/coverage.xml
2 changes: 1 addition & 1 deletion .github/workflows/prometheus_query_to_csv.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
run: cd prometheus_query_to_csv && python3 -m pytest . --cov-report xml:coverage.xml --cov

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
files: ./prometheus_query_to_csv/coverage.xml
2 changes: 1 addition & 1 deletion .github/workflows/pynetbox.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: cd pynetbox_query && python3 -m pytest . --cov-report xml:coverage.xml --cov

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
files: ./pynetbox_query/coverage.xml
3 changes: 2 additions & 1 deletion .github/workflows/rabbit_consumer.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,12 @@ jobs:
cd OpenStack-Rabbit-Consumer && python -m coverage xml
- name: Upload coverage to codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
files: OpenStack-Rabbit-Consumer/coverage.xml
fail_ci_if_error: true
flags: rabbit_consumer
token: ${{ secrets.CODECOV_TOKEN }}

push_dev_image_harbor:
runs-on: ubuntu-latest
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/reverse_ssl_cert_chain.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ jobs:
run: cd reverse_ssl_cert_chain && python3 -m pytest . --cov-report xml:coverage.xml --cov

- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
uses: codecov/codecov-action@v4
with:
token: ${{secrets.CODECOV_TOKEN}}
token: ${{ secrets.CODECOV_TOKEN }}
files: ./reverse_ssl_cert_chain/coverage.xml

0 comments on commit 4999429

Please sign in to comment.