Skip to content

Commit

Permalink
codecov base report update (#213)
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlov721 authored Dec 4, 2024
1 parent c90f716 commit 616a5b2
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: CI

on:
pull_request:
branches: [ dev, main ]
branches: [ main ]
paths:
- 'luxonis_ml/**'
- 'tests/**'
Expand Down Expand Up @@ -100,3 +100,11 @@ jobs:
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false

- name: Upload coverage as artifact
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'
uses: actions/upload-artifact@v4
with:
name: coverage
path: coverage.xml
overwrite: true
26 changes: 26 additions & 0 deletions .github/workflows/codecov.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
on:
push:
branches: [ main ]
paths:
- 'luxonis_ml/**'
- 'tests/**'
jobs:
update-base-report:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Download artifacts
uses: actions/download-artifact@v4
with:
name: coverage
path: coverage.xml

- name: Upload coverage results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
fail_ci_if_error: false

0 comments on commit 616a5b2

Please sign in to comment.