Update to 2026 (#2288)

This commit is contained in:
Sam Freund
2026-01-12 16:00:11 -06:00
committed by GitHub
parent e088050902
commit 3b57125d96
53 changed files with 444 additions and 237 deletions

View File

@@ -24,7 +24,7 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: 3.12
python-version: 3.14
- name: Install dependencies
run: |
@@ -76,49 +76,30 @@ jobs:
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: 3.12
python-version: 3.14
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install setuptools wheel pytest mypy numpy wpilib pyntcore opencv-python robotpy==2026.1.1b1 pyfrc
pip install setuptools wheel pytest mypy
- name: Build wheel
working-directory: ./photon-lib/py
run: python setup.py sdist bdist_wheel
- name: Run Unit Tests (Unix)
- name: Build and configure PhotonLibPy
working-directory: ./photon-lib/py
if: runner.os != 'Windows'
run: |
pip install --no-cache-dir dist/*.whl
pytest
- name: Run Unit Tests (Windows)
working-directory: ./photon-lib/py
if: runner.os == 'Windows'
shell: cmd
run: |
for %%f in (dist/*.whl) do (
echo installing dist/%%f
pip install --no-cache-dir dist/%%f
)
pytest
- name: Build and configure PhotonLibPy (bash)
working-directory: ./photon-lib/py
if: runner.os != 'Windows'
shell: bash
run: |
./buildAndTest.sh
./enableUsingDevBuilds.sh
- name: Build and configure PhotonLibPy (pwsh)
- name: Run Unit Tests
working-directory: ./photon-lib/py
if: runner.os == 'Windows'
shell: bash
run: |
./buildandTest.bat
./enableUsingDevBuilds.bat
pip install --no-cache-dir dist/*.whl
pytest
- name: Run mypy type checking
run: mypy --show-column-numbers --config-file photon-lib/py/pyproject.toml photon-lib