Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 @@ -94,6 +94,14 @@ jobs:
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

- name: Upload coverage results to Codecov
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.8'
uses: codecov/codecov-action@v4
Expand Down
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
Loading