Redo piston platform moving sound logic #274
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run tests | |
on: | |
push: | |
branches: [ master, dev ] | |
pull_request: | |
branches: [ master, dev ] | |
workflow_dispatch: | |
# Allow triggering manually on other branches. | |
permissions: | |
contents: read | |
pull-requests: read | |
jobs: | |
run-tests: | |
runs-on: ${{ matrix.os }} | |
name: "${{ matrix.os }} Python ${{ matrix.python-version }}-${{ matrix.arch }}" | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- python-version: '3.12' | |
arch: 'x64' | |
os: 'windows-latest' | |
libs: 'lib-64' | |
- python-version: '3.13-dev' | |
arch: 'x64' | |
os: 'windows-latest' | |
libs: 'lib-64' | |
- python-version: '3.12' | |
arch: 'x64' | |
os: 'ubuntu-latest' | |
libs: 'lib-64' # TODO? | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
submodules: true | |
- name: Set up Python ${{ matrix.python-version }}-${{ matrix.arch }} | |
uses: actions/setup-python@v5 | |
with: | |
python-version: ${{ matrix.python-version }} | |
architecture: ${{ matrix.arch }} | |
cache: 'pip' | |
cache-dependency-path: | | |
'dev-requirements.txt' | |
'requirements.txt' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip setuptools wheel | |
python -m pip install -r requirements.txt -r dev-requirements.txt | |
- name: Test with pytest | |
# Enable Python's debug mode to do additional checks, and error if any uncaught warnings are | |
# produced. | |
run: | | |
python -X dev -m pytest ${{ github.workspace }}/src/test/ | |
env: | |
PYTHONPATH: ${{ github.workspace }}/src/ | |
SPATIALINDEX_C_LIBRARY: ${{ github.workspace }}/${{ matrix.libs }}/ | |
# Don't fail for beta versions of Python. | |
continue-on-error: ${{ contains(matrix.python-version, 'dev') }} |