Skip to content

Force NCHW tensor order. #264

Force NCHW tensor order.

Force NCHW tensor order. #264

Workflow file for this run

name: CI
on:
pull_request:
branches: [ dev, main ]
paths:
- 'depthai_nodes/**'
- 'tests/**'
- 'examples/**'
- 'docs/**'
- .github/workflows/ci.yaml
permissions:
pull-requests: write
contents: write
checks: write
jobs:
assigner:
runs-on: ubuntu-latest
steps:
- name: Auto-assign
uses: toshimaru/[email protected]
labeler:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Labeler
uses: actions/labeler@v5
with:
configuration-path: .github/labeler.yaml
pre-commit:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Install pre-commit
run: python -m pip install 'pre-commit<4.0.0'
- name: Run pre-commit
uses: pre-commit/[email protected]
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Install dependencies
run: pip install pydoctor
- name: Build docs
run: pydoctor --docformat=plaintext depthai_nodes
tests:
needs:
- pre-commit
- docs
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ['3.8', '3.10']
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install depthai
run: pip install --extra-index-url https://artifacts.luxonis.com/artifactory/luxonis-python-release-local/ depthai==3.0.0a6
- name: Install package
run: pip install -e .[dev]
- name: Run tests
run: pytest --cov=depthai_nodes --cov-report=xml --junitxml=junit.xml -o junit_family=legacy
- name: Upload results to Codecov
uses: codecov/codecov-action@v4
with:
token: ${{ secrets.CODECOV_TOKEN }}
- name: Upload test results to Codecov
if: ${{ !cancelled() }}
uses: codecov/test-results-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}