west/.github/workflows/test.yml

31 lines
813 B
YAML

---
name: Python Test
# yamllint disable-line rule:truthy
on: [push, pull_request]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python-version: ['3.9', '3.10', '3.11', '3.12', '3.13']
steps:
- uses: actions/checkout@v4
# This is enough to find many quoting issues
with:
path: "./check out"
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Display Python version
run: python -c "import sys; print(sys.version); print(sys.platform)"
- name: install tox
run: pip3 install tox
- name: tox
run: tox -c 'check out' -- -W error