mirror of
https://github.com/infiniteCable2/opendbc.git
synced 2026-02-19 05:23:56 +08:00
* cleanup dependencies * all * install * less * try this * slimmm * skip docker * silence that one * disable for now * e * fix build * bring that back * not ready yet
45 lines
985 B
YAML
45 lines
985 B
YAML
name: tests
|
|
|
|
on:
|
|
push:
|
|
branches:
|
|
- master
|
|
pull_request:
|
|
|
|
# TODO: enable this
|
|
#env:
|
|
# PYTHONWARNINGS: error,default::DeprecationWarning
|
|
|
|
jobs:
|
|
unit-tests:
|
|
name: unit tests
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 1
|
|
#strategy:
|
|
# fail-fast: false
|
|
# matrix:
|
|
# run: [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14]
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
cache: 'pip'
|
|
python-version: '3.11'
|
|
- run: pip install -e .[testing,docs]
|
|
- run: scons -j$(nproc)
|
|
- run: pytest -n logical --durations=0
|
|
|
|
static-analysis:
|
|
name: static analysis
|
|
runs-on: ubuntu-latest
|
|
timeout-minutes: 1
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- uses: actions/setup-python@v5
|
|
with:
|
|
cache: 'pip'
|
|
python-version: '3.11'
|
|
- run: sudo apt install --no-install-recommends -y cppcheck
|
|
- run: pip install -e .
|
|
- uses: pre-commit/action@v3.0.1
|