Preview of DetectionResult refactoring #194
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |