Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
58 changes: 58 additions & 0 deletions .github/workflows/macos-tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,58 @@
# Workflow for running Ramble unit tests on MacOS
# This serves as a quick check to ensure Ramble works on the platform
name: macOS Compatibility Tests
on:
pull_request:
branches:
- main
- develop
paths:
- 'lib/ramble/**'
- 'bin/**'
- 'var/ramble/repos/**'
- 'requirements*.txt'
- 'pyproject*.toml'
- '.github/workflows/macos-tests.yaml'
permissions:
contents: read
jobs:
macos-tests:
runs-on: macos-latest
strategy:
matrix:
python-version: ["3.14"]
steps:
- name: Checkout Code
uses: actions/checkout@v6

- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: 'requirements*.txt'

- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-pinned.txt

- name: Clone the latest Spack
run: |
git clone --depth 1 https://github.com/spack/spack.git ../spack

- name: Verify Environment
run: |
. share/ramble/setup-env.sh
echo "RAMBLE_ROOT=$RAMBLE_ROOT"
python --version
ramble python --version
. ../spack/share/spack/setup-env.sh
spack --version

- name: Run Unit Tests
run: |
. share/ramble/setup-env.sh
. ../spack/share/spack/setup-env.sh
# Exclude slow tests
ramble unit-test --fast -n auto
Loading