Skip to content

fixup! 96cd3040e80bc3130d4d1d78cdb49a8e8541907d #23

fixup! 96cd3040e80bc3130d4d1d78cdb49a8e8541907d

fixup! 96cd3040e80bc3130d4d1d78cdb49a8e8541907d #23

Workflow file for this run

name: 'python tests'
on:
- 'push'
- 'pull_request'
jobs:
linux:
runs-on: 'ubuntu-latest'
strategy:
matrix:
compiler:
- cc: 'clang'
ldshared: 'clang -shared'
- cc: 'gcc'
python-version:
- 'pypy3.9'
- 'pypy3.10'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: 'actions/checkout@v4'
- name: 'install compiler'
run: |
sudo apt-get install -y ${{ matrix.compiler.cc }}
echo >> "$GITHUB_ENV" 'CC=${{ matrix.compiler.cc }}'
echo >> "$GITHUB_ENV" 'LDSHARED=${{ matrix.compiler.ldshared }}'
- name: 'set up python ${{ matrix.python-version }}'
uses: actions/setup-python@v5
with:
python-version: '${{ matrix.python-version }}'
- name: 'install tox'
run: |
python -mpip install -U pip setuptools
python -mpip install -U tox tox-gh-actions
- name: 'run tests'
run: |
tox
macos:
runs-on: ${{ matrix.runner }}
strategy:
matrix:
runner:
- macos-12
- macos-14
python-version:
- 'pypy3.9'
- 'pypy3.10'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v4
- name: 'set up python ${{ matrix.python-version }}'
uses: actions/setup-python@v5
with:
python-version: '${{ matrix.python-version }}'
- name: 'install tox'
run: |
python -mpip install -U pip setuptools
python -mpip install -U tox tox-gh-actions
- name: 'run tests'
run: |
tox
windows:
runs-on: ${{ matrix.platform.runner }}
strategy:
matrix:
platform:
- runner: windows-latest
target: x64
- runner: windows-latest
target: x86
python-version:
- 'pypy3.9'
- 'pypy3.10'
- '3.7'
- '3.8'
- '3.9'
- '3.10'
- '3.11'
- '3.12'
steps:
- uses: actions/checkout@v4
- name: 'set up python ${{ matrix.python-version }}'
uses: actions/setup-python@v5
with:
python-version: '${{ matrix.python-version }}'
- name: 'install tox'
run: |
python -mpip install -U pip setuptools
python -mpip install -U tox tox-gh-actions
- name: 'run tests'
run: |
tox