Skip to content

Commit

Permalink
add python test CI job
Browse files Browse the repository at this point in the history
  • Loading branch information
mjansen4857 committed Dec 6, 2023
1 parent d2212f4 commit 778a10e
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .github/workflows/pplib-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,30 @@ jobs:
# name: pplib-coverage
# files: pathplannerlib/build/reports/jacoco/test/jacocoTestReport.xml

test-python:
name: "[PPLib Python] Unit Tests"
runs-on: ubuntu-22.04
container: wpilib/ubuntu-base:22.04

steps:
- name: Checkout repo
uses: actions/checkout@v4

- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"

- name: Install dependencies
working-directory: ./pathplannerlib-python
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: pytest

build-docker:
strategy:
fail-fast: false
Expand Down
6 changes: 6 additions & 0 deletions pathplannerlib-python/requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
setuptools~=68.2.0
pyntcore~=2024.0.0b3
robotpy-wpimath~=2024.0.0b3
robotpy-commands-v2~=2024.0.0b3
robotpy-wpiutil~=2024.0.0b3
robotpy-hal~=2024.0.0b3

0 comments on commit 778a10e

Please sign in to comment.