Skip to content

fix artifact upload, build for MacOS intel #66

fix artifact upload, build for MacOS intel

fix artifact upload, build for MacOS intel #66

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"]
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 }
- { python-version: "3.13", os: " windows-latest", experimental: false }
include:
# Python 3.9 is on macos-13 but not macos-latest (macos-14-arm64)
# https://github.com/actions/setup-python/issues/696#issuecomment-1637587760
- { 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