Skip to content

Merge pull request #397 from lmytime/main #281

Merge pull request #397 from lmytime/main

Merge pull request #397 from lmytime/main #281

Workflow file for this run

name: Tests
on:
push:
branches: [main, v2.0]
pull_request:
branches: [main, v2.0]
jobs:
tests:
name: "py${{ matrix.python-version }} / ${{ matrix.os }}"
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.14"]
os: [ubuntu-latest, macos-latest]
steps:
- name: Clone the repo
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Clone fsps
uses: actions/checkout@v4
with:
repository: cconroy20/fsps
path: fsps
- name: Set Fortran Compiler (macOS)
if: matrix.os == 'macos-latest'
run: echo "FC=gfortran-14" >> "$GITHUB_ENV"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install ".[test]"
env:
SPS_HOME: ${{ github.workspace }}/fsps
- name: Run tests
run: python -m pytest
env:
SPS_HOME: ${{ github.workspace }}/fsps