Skip to content

DRAFT: Updated packaging scheme #526

DRAFT: Updated packaging scheme

DRAFT: Updated packaging scheme #526

# This workflow will install Python dependencies and run tests with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
name: Python package
env:
CLONE_PATH: ${{ github.workspace }}
ACTIONS_PATH: ${{ github.workspace }}/.github/workflows
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
jobs:
build_supported:
runs-on: ${{ matrix.os }}
strategy:
matrix:
# Please adjust pyproject.toml Python version requirement to match
# supported version expressed here.
#os: [ubuntu-20.04, ubuntu-22.04, ubuntu-24.04,
# macos-13, macos-14, macos-15,
# windows-2019, windows-2022]
#python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
os: [macos-13]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
exclude:
# Failing with root cause not yet understood (Issue #???)
#- os: macos-13
# python-version: "3.10"
#- os: macos-13
# python-version: "3.11"
#- os: macos-13
# python-version: "3.12"
# meson is not finding a Fortran compiler
- os: macos-13
python-version: "3.13"
# Warning: Numpy built with MINGW-W64 on Windows 64 bits is
# experimental, and only available for testing.
#
# It fails. Does this mean that it's running in Windows rather than
# the Ubuntu environment?
- os: windows-2022
python-version: "3.13"
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Setup Python with tox
shell: bash
run: $CLONE_PATH/.github/workflows/install_tox.sh
- name: Run test suite
run: |
# This should be running nocoverage, but must run using a local install
# due to the current testing setup.
# TODO: Finalize after Issue #74 integrates the tests into the package.
tox -r -e coverage