Skip to content

cast to PyCFunction #62

cast to PyCFunction

cast to PyCFunction #62

Workflow file for this run

name: Tests
on: [push, pull_request]
env:
PY_COLORS: "1"
jobs:
test:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
experimental: [false]
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
# Python 3.9 is on macos-13 but not macos-latest (macos-14-arm64)
# https://github.com/actions/setup-python/issues/696#issuecomment-1637587760
exclude:
- { python-version: "3.7", os: "macos-latest", experimental: false }
- { python-version: "3.8", os: "macos-latest", experimental: false }
- { python-version: "3.9", os: "macos-latest", experimental: false }
include:
- { python-version: "3.7", os: "macos-13", experimental: false }
- { python-version: "3.8", os: "macos-13", experimental: false }
- { python-version: "3.9", os: "macos-13", experimental: false }
fail-fast: false
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
allow-prereleases: true
- name: Install dependencies
run: |
python -m pip install tox
- name: Test with tox
run: |
tox -e py
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r doc/doc-requirements.txt
pip install -e .
- name: Build documentation
run: |
python -m sphinx -W -an doc build
- uses: actions/upload-artifact@v3
with:
name: sphinx-out
path: ./build/
retention-days: 5