mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-08 13:33:42 +08:00
22a8575199
Keep official openpilot ancestry and dependency licenses. Store resources directly in Git, remove LFS setup requirements, and leave the downloadable big model outside the source tree.
37 lines
857 B
YAML
37 lines
857 B
YAML
name: tests
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.12"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install media dependencies
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install libavdevice-dev libavfilter-dev pkg-config
|
|
- name: Install package
|
|
run: pip install -e .[dev]
|
|
- name: Unit Tests
|
|
run: pytest
|
|
static_analysis:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.12'
|
|
- name: Install pre-commit
|
|
run: pip install pre-commit
|
|
- name: Static analysis
|
|
run: |
|
|
pre-commit run --all
|