Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 25 additions & 25 deletions .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,29 +28,29 @@ jobs:
- name: Build release FW
run: ${{ env.RUN }} "CERT=board/certs/debug RELEASE=1 scons"

# test:
# name: ./test.sh
# runs-on: ${{ matrix.os }}
# strategy:
# fail-fast: false
# matrix:
# os: ['macos-latest', 'ubuntu-latest']
# timeout-minutes: 10
# steps:
# - uses: actions/checkout@v4
# - run: ./test.sh
test:
name: ./test.sh
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: ['macos-latest', 'ubuntu-latest']
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- run: ./test.sh

# windows:
# name: windows pip package test
# runs-on: windows-latest
# timeout-minutes: 10
# steps:
# - uses: actions/checkout@v4
# - uses: actions/setup-python@v5
# with:
# python-version: "3.12"
# - uses: astral-sh/setup-uv@v5
# - name: Install package with uv
# run: uv pip install --system .
# - name: Verify importing panda
# run: python -c "from panda import Panda"
windows:
name: windows pip package test
runs-on: windows-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
- uses: astral-sh/setup-uv@v5
- name: Install package with uv
run: uv pip install --system .
- name: Verify importing panda
run: python -c "from panda import Panda"
1 change: 1 addition & 0 deletions board/boards/board_declarations.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,4 @@ struct board {
extern struct board board_tres;
extern struct board board_cuatro;
extern struct board board_red;
extern struct board board_richie;
2 changes: 1 addition & 1 deletion board/jungle/scripts/loopback_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from termcolor import cprint

from opendbc.car.structs import CarParams
from panda import Panda PandaJungle
from panda import Panda, PandaJungle

NUM_PANDAS_PER_TEST = 1
FOR_RELEASE_BUILDS = os.getenv("RELEASE") is not None # Release builds do not have ALLOUTPUT mode
Expand Down
2 changes: 1 addition & 1 deletion board/jungle/scripts/spam_can.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def get_test_string():
elif bus == 2:
bus2_count += 1
count += 1
except usb1.USBErrorTimeout as e:
except usb1.USBErrorTimeout:
pass
except KeyboardInterrupt:
break
Expand Down
3 changes: 1 addition & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ classifiers = [
dependencies = [
"libusb1",
"libusb-package",
"opendbc @ git+ssh://git@github.com/Ever-Cars/opendbc.git@polar-bear#egg=opendbc",
"opendbc @ git+https://github.com/commaai/opendbc.git@3a852b049fb423cf57563e38b72ddd7592def221#egg=opendbc",

# runtime dependency on comma four
#"spidev; platform_system == 'Linux'",
Expand All @@ -26,7 +26,6 @@ dev = [
"pycryptodome >= 3.9.8",
"cffi",
"flaky",
"prettytable",
"pytest",
"pytest-xdist",
"pytest-mock",
Expand Down
2 changes: 1 addition & 1 deletion python/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -738,7 +738,7 @@ def can_clear(self, bus):

"""
self._handle.controlWrite(Panda.REQUEST_OUT, 0xf1, bus, 0, b'')

def get_can_rx_slots(self):
"""Returns the number of empty RX slots in the internal CAN ringbuffer.

Expand Down
3 changes: 1 addition & 2 deletions scripts/richie/led_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,10 +44,9 @@ def toggle_led(led):

while True:
print(chr(27) + "[2J") # clear screen
print_leds()
print_leds()
led = int(input())
if led < 1 or led > len(led_state):
continue

toggle_led(led)

3 changes: 2 additions & 1 deletion scripts/spam_can.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/usr/bin/env python3
import os
import time
import usb1
import random
import argparse
Expand Down Expand Up @@ -46,7 +47,7 @@ def get_test_string():
elif bus == 2:
bus2_count += 1
count += 1
except usb1.USBErrorTimeout as e:
except usb1.USBErrorTimeout:
pass
except KeyboardInterrupt:
break
Expand Down
Loading