Skip to content

Add initial package boilerplate and implementation #8

Add initial package boilerplate and implementation

Add initial package boilerplate and implementation #8

Workflow file for this run

name: Pytest-run-parallel tests
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ['3.8', '3.9', '3.10', '3.11', '3.12', '3.13', '3.13t', 'pypy-3.8']
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
if: ${{ !endsWith(matrix.python-version, 't') && matrix.python-version != '3.13' }}
with:
python-version: ${{ matrix.python-version }}
- name: Setup free-threaded variables
if: ${{ endsWith(matrix.python-version, 't') }}
run: |
echo "FREE_THREADED=1" >> "$GITHUB_ENV"
- uses: deadsnakes/action@6c8b9b82fe0b4344f4b98f2775fcc395df45e494 # v3.1.0
if: ${{ endsWith(matrix.python-version, 't') || matrix.python-version == '3.13' }}
with:
python-version: "3.13"
nogil: ${{ env.FREE_THREADED == '1' }}
- name: Install tox
run: pip install tox
- name: Test
env:
PYTHON_GIL: ${{ env.FREE_THREADED != '1' }}
run: tox -e py