Skip to content

Implement Isotp driver #386

Implement Isotp driver

Implement Isotp driver #386

Workflow file for this run

name: "Run Tests"
on:
workflow_dispatch:
push:
branches:
- main
pull_request:
merge_group:
permissions:
contents: read
pull-requests: read
jobs:
pytest-matrix:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: Install uv
# Install latest uv version using the installer
run: curl -LsSf https://astral.sh/uv/install.sh | sh
- name: Install Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Restore uv cache
uses: actions/cache@v4
with:
path: /tmp/.uv-cache
key: uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
restore-keys: |
uv-${{ runner.os }}-${{ hashFiles('uv.lock') }}
uv-${{ runner.os }}
- name: Run pytest
run: make test -j $(nproc)
- name: Minimize uv cache
run: uv cache prune --ci
# https://github.com/orgs/community/discussions/26822
pytest:
runs-on: ubuntu-latest
needs: [pytest-matrix]
if: ${{ always() }}
steps:
- run: exit 1
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
|| contains(needs.*.result, 'skipped')
}}