usb: change api so that every packet sent is crc32c, update python usb api, add automated tests for usb.
This commit is contained in:
33
.github/workflows/python-usb-export.yml
vendored
Normal file
33
.github/workflows/python-usb-export.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: USB Export Python Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
paths: &python_usb_export_paths
|
||||
- 'tools/test_usb_export.py'
|
||||
- 'tools/usb_export.py'
|
||||
- 'tools/usb_common.py'
|
||||
- 'tools/requirements.txt'
|
||||
- '.github/workflows/python-usb-export.yml'
|
||||
pull_request:
|
||||
paths: *python_usb_export_paths
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python 3.11
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r tools/requirements.txt
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
python3 tools/test_usb_export.py
|
||||
33
.github/workflows/python-usb-install.yml
vendored
Normal file
33
.github/workflows/python-usb-install.yml
vendored
Normal file
@@ -0,0 +1,33 @@
|
||||
name: USB Install Python Tests
|
||||
|
||||
on:
|
||||
push:
|
||||
paths: &python_usb_install_paths
|
||||
- 'tools/test_usb_install.py'
|
||||
- 'tools/usb_install.py'
|
||||
- 'tools/usb_common.py'
|
||||
- 'tools/requirements.txt'
|
||||
- '.github/workflows/python-usb-install.yml'
|
||||
pull_request:
|
||||
paths: *python_usb_install_paths
|
||||
|
||||
jobs:
|
||||
test:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Set up Python 3.11
|
||||
uses: actions/setup-python@v5
|
||||
with:
|
||||
python-version: '3.11'
|
||||
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install -r tools/requirements.txt
|
||||
|
||||
- name: Run tests
|
||||
run: |
|
||||
python3 tools/test_usb_install.py
|
||||
Reference in New Issue
Block a user