Skip to content

Bump pypa/cibuildwheel from 3.2.1 to 3.3.0 (#371) #609

Bump pypa/cibuildwheel from 3.2.1 to 3.3.0 (#371)

Bump pypa/cibuildwheel from 3.2.1 to 3.3.0 (#371) #609

Workflow file for this run

name: Tests
on:
push:
branches: [main]
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
tests:
name: "py${{ matrix.python-version }} / ${{ matrix.os }}${{ matrix.with-options && ' / options' || '' }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.13"]
os: [ubuntu-latest]
with-options: [false]
include:
- os: macos-14
python-version: "3.12"
with-options: false
- os: ubuntu-latest
python-version: "3.11"
with-options: true
steps:
- name: Clone the repo
uses: actions/checkout@v6
with:
fetch-depth: 0
submodules: recursive
- name: Set up uv
uses: astral-sh/setup-uv@v7
- name: Set up Linux
run: |
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get update
sudo apt-get install -y gcc g++ gfortran
if: ${{ runner.os == 'Linux' }}
- name: Set up macOS-14
run: echo "FC=gfortran-13" >> "$GITHUB_ENV"
if: ${{ matrix.os == 'macos-14' }}
- name: Run simple test
run: uv run --extra test --python ${{ matrix.python-version }} tests/simple.py
env:
SPS_HOME: ${{ github.workspace }}/src/fsps/libfsps
if: ${{ !matrix.with-options }}
- name: Run tests
run: uv run --extra test --python ${{ matrix.python-version }} pytest -n 2 --durations=0 tests/tests.py
env:
SPS_HOME: ${{ github.workspace }}/src/fsps/libfsps
if: ${{ !matrix.with-options }}
- name: Run tests
run: uv run --extra test --python ${{ matrix.python-version }} tests/options.py
env:
SPS_HOME: ${{ github.workspace }}/src/fsps/libfsps
FFLAGS: "-DMIST=0 -DPADOVA=1 -DMILES=0 -DBASEL=1"
if: ${{ matrix.with-options }}