Initial commit #1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: tests | |
| on: [push, pull_request] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: pip install -r requirements.txt | |
| - name: Build native CRC-15 component | |
| run: bash canary/native/build.sh | |
| - name: Set up vcan0 for SocketCAN tests | |
| run: | | |
| sudo modprobe vcan | |
| sudo ip link add dev vcan0 type vcan | |
| sudo ip link set up vcan0 | |
| - name: Run tests | |
| run: PYTHONPATH=. python -m pytest tests/ -v |