Skip to content

DOCS-2901: Fleet management api code QA (#738) #2

DOCS-2901: Fleet management api code QA (#738)

DOCS-2901: Fleet management api code QA (#738) #2

Workflow file for this run

name: Test
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
on:
workflow_dispatch:
push:
branches: [main]
pull_request_target:
branches: [main, "rc-*"]
jobs:
test:
if: github.repository_owner == 'viamrobotics'
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
requirements-version: ["min", "max"]
steps:
- name: Checkout Push/Workflow Dispatch
if: github.event_name == 'workflow_dispatch' || github.event_name == 'push'
uses: actions/checkout@v3
- name: Checkout PR
if: github.event_name == 'pull_request_target'
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha }}
- name: Install Poetry
run: pipx install poetry
- name: Setup python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: poetry
- name: Fix Poetry
run: poetry config installer.modern-installation false
- name: Install package
run: make install
- name: Install minimum package versions
run: poetry run pip install -r requirements-test.txt
if: ${{ matrix.requirements-version == 'min' }}
- name: Type Check
run: make typecheck
- name: Lint
run: make lint
- name: Test
run: make test
- name: Test Documentation
run: make test_docs