Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
kozlov721 committed Dec 19, 2023
1 parent 771026c commit 77d5cc9
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
name: CI

on: issue_comment
on: push

jobs:
call-reusable-workflow:
uses: luxonis/luxonis-ml/.github/workflows/luxonis-ml-ci.yaml@feature/custom-pre-commit-hooks
with:
os: 'ubuntu-latest'
python: "3.8"
src_dir: 'src/luxonis_ml'
python-version: "3.8"
src-dir: 'src/luxonis_ml'
8 changes: 4 additions & 4 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: luxonis-ml-ci
on:
workflow_call:
inputs:
python:
python-version:
required: false
type: string
description: "Python version to use for the virtual environment"
Expand All @@ -13,7 +13,7 @@ on:
type: string
description: "Operating system versions to run tests on"
default: "ubuntu-latest"
src_dir:
src-dir:
required: true
type: string
description: "Source directory to monitor for coverage report"
Expand All @@ -30,7 +30,7 @@ jobs:
steps:
- id: set-matrix
run: |
python_list=$(echo "${{ inputs.os }}" | xargs | jq -R -s -c 'split(",")')
python_list=$(echo "${{ inputs.python-version }}" | xargs | jq -R -s -c 'split(",")')
os_list=$(echo "${{ inputs.os }}" | xargs | jq -R -s -c 'split(",")')
echo "os-matrix=$os_list" >> $GITHUB_ENV
Expand Down Expand Up @@ -86,7 +86,7 @@ jobs:
uses: pavelzw/pytest-action@v2
with:
emoji: false
custom-arguments: --cov ${{ github.event.inputs.src_dir }}
custom-arguments: --cov ${{ github.event.inputs.src-dir }}

- name: Generate coverage badge
uses: tj-actions/coverage-badge-py@v2
Expand Down

0 comments on commit 77d5cc9

Please sign in to comment.