mirror of
https://github.com/MoreTore/openpilot.git
synced 2026-10-14 18:33:46 +08:00
81da8ac9f4
date: 2024-06-11T01:36:39 master commit: f8cb04e4a8b032b72a909f68b808a50936184bee
38 lines
966 B
YAML
38 lines
966 B
YAML
name: tests
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
test:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install aiortc dependencies
|
|
run: |
|
|
sudo apt update
|
|
sudo apt install libavdevice-dev libavfilter-dev libopus-dev libvpx-dev libsrtp2-dev pkg-config
|
|
- name: Install package
|
|
run: pip install -e .[dev]
|
|
- name: Unit Tests
|
|
run: |
|
|
cd tests/; python -m unittest discover
|
|
static_analysis:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
python-version: '3.11'
|
|
- name: Install pre-commit
|
|
run: pip install pre-commit
|
|
- name: Static analysis
|
|
run: |
|
|
pre-commit run --all
|