Skip to content

Add Polygon Primitive (#254) #193

Add Polygon Primitive (#254)

Add Polygon Primitive (#254) #193

Workflow file for this run

name: Pre-Commit Checks
permissions: read-all
on:
push:
branches:
- master
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
workflow_dispatch: # run on request (no need for PR)
jobs:
Code-Quality-Checks:
runs-on: ubuntu-20.04
steps:
- name: CHECKOUT REPOSITORY
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: 22
- name: Install clang-format
run: sudo apt-get install -y clang-format-10
- name: Install dependencies
run: pip install 'src/python/.[full]'
- name: Run pre-commit checks
run: pre-commit run --all-files
Unit-Tests:
runs-on: ubuntu-22.04
steps:
- name: CHECKOUT REPOSITORY
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Install dependencies
run: pip install 'src/python/.[tests,ovms]'
- name: Run python unit tests
run: pytest tests/python/unit