Skip to content

Commit

Permalink
Unified unit testing workflows (MacOS and Linux)
Browse files Browse the repository at this point in the history
  • Loading branch information
lindonroberts committed May 30, 2024
1 parent 18e8be6 commit 37819bd
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 32 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Python package unit testing (Linux)
name: Python package unit testing

on: [push, pull_request]

Expand All @@ -9,19 +9,28 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
os: [ubuntu-latest, macos-latest]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]

steps:
- uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}

- name: Update Fortran compiler information (MacOS only)
if: runner.os == 'macOS'
run: |
sudo ln -s /opt/homebrew/bin/gfortran-12 /opt/homebrew/bin/gfortran
export FC="/opt/homebrew/bin/gfortran"
- name: Install dependencies
run: |
python -m pip install .
pip install pytest
- name: Run unit tests
run: |
cd trustregion/tests
Expand Down
30 changes: 0 additions & 30 deletions .github/workflows/python_testing_mac.yml

This file was deleted.

0 comments on commit 37819bd

Please sign in to comment.