Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
33 changes: 1 addition & 32 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,24 +3,20 @@ name: CI
on:
pull_request:
workflow_dispatch:
push:
branches: [ main ]

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
auto-assigner:
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest

steps:
- name: Auto-assign
uses: toshimaru/[email protected]

labeler:
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest

steps:
Expand All @@ -35,7 +31,6 @@ jobs:
configuration-path: .github/labeler.yaml

pre-commit:
if: ${{ github.event_name == 'pull_request' }}
runs-on: ubuntu-latest

steps:
Expand All @@ -51,7 +46,6 @@ jobs:
uses: pre-commit/[email protected]

docs:
if: ${{ github.event_name == 'pull_request' }}
needs: pre-commit
runs-on: ubuntu-latest

Expand All @@ -68,7 +62,6 @@ jobs:
run: pydoctor --docformat=epytext luxonis_ml

type-check:
if: ${{ github.event_name == 'pull_request' }}
needs: pre-commit
runs-on: ubuntu-latest

Expand Down Expand Up @@ -96,7 +89,7 @@ jobs:
project: pyproject.toml

semgrep:
if: ${{ github.actor != 'dependabot[bot]' && github.event_name == 'pull_request' }})
if: ${{ github.actor != 'dependabot[bot]' }})
needs: pre-commit
runs-on: ubuntu-latest
container:
Expand Down Expand Up @@ -149,7 +142,6 @@ jobs:
matrix:
os: [ ubuntu-latest, windows-latest ]

if: ${{ github.event_name == 'pull_request' }}
needs: [type-check, semgrep]
runs-on: ${{ matrix.os }}

Expand Down Expand Up @@ -213,29 +205,6 @@ jobs:
path: coverage.xml
overwrite: true

update-base-report:
if: ${{ github.event_name == 'push' }}
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Download artifacts
uses: dawidd6/action-download-artifact@v7
with:
name: coverage
path: coverage.xml
workflow: ci.yaml

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


check-requirements:
if: ${{ startsWith(github.head_ref, 'release/') }}
Expand Down
31 changes: 31 additions & 0 deletions .github/workflows/update-cov-report.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Update Coverage Report

on:
push:
branches: [ main ]

jobs:
update-base-report:
runs-on: ubuntu-latest
strategy:
matrix:
suite: [unit, predefined, combinations, misc]

steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}

- name: Download artifacts
uses: dawidd6/action-download-artifact@v7
with:
name: coverage-${{ matrix.suite }}
path: coverage.xml
workflow: ci.yaml

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