Skip to content

Commit

Permalink
chore: update workflow for 2024 Robotpy
Browse files Browse the repository at this point in the history
  • Loading branch information
megarubber authored Feb 29, 2024
1 parent 7ff1d79 commit 269f819
Showing 1 changed file with 25 additions and 12 deletions.
37 changes: 25 additions & 12 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,32 +10,45 @@ on:
- '*'

jobs:
#check:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - uses: psf/black@stable
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: psf/black@stable

check-file-headers:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: 3.12
- name: Check header
run: python ./check_header.py
shell: bash

test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
#os: [windows-latest, macos-latest, ubuntu-22.04]
os: [windows-latest, ubuntu-22.04]
python_version: [3.7, 3.8, 3.9, "3.10", "3.11"]
os: ["ubuntu-22.04", "macos-12", "windows-2022"]
python_version:
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'

steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python_version }}
architecture: ${{ matrix.architecture }}
- name: Install deps
run: |
pip install -U pip
pip install 'robotpy[all]' pytest
#pip install 'robotpy[commands2]<2024.0.0,>=2023.1.1.0' pytest
#pip install 'robotpy[commands2,romi]<2024.0.0,>=2023.0.0b3' pytest
pip install 'robotpy[commands2,romi]<2025.0.0,>=2024.2.1.1' numpy pytest
- name: Run tests
run: bash run_tests.sh
shell: bash

0 comments on commit 269f819

Please sign in to comment.