Skip to content

Test mac on self-hosted runner #11

Test mac on self-hosted runner

Test mac on self-hosted runner #11

Workflow file for this run

name: mac-ci
on: [push, pull_request]
jobs:
tests:
runs-on: [self-hosted, macOS]
if: github.repository == 'stfc/janus-core'
timeout-minutes: 30
strategy:
matrix:
python-version: ['3.9','3.10','3.11','3.12']
steps:
- uses: actions/checkout@v4
- name: Install uv
uses: astral-sh/setup-uv@v4
with:
version: "0.5.7"
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --all-extras
- name: Run test suite
env:
# show timings of tests
PYTEST_ADDOPTS: "--durations=0"
run: |
source ~/.zshrc
cat ~/.zshrc
echo $PATH
echo $HOME
uv run pytest --run-extra-mlips --cov janus_core --cov-append . -- tests/test_cli.py
- name: TEST PATH
run: echo $PATH
- name: Report coverage to Coveralls
uses: coverallsapp/github-action@v2
with:
parallel: true
flag-name: run-${{ matrix.python-version }}
file: coverage.xml
base-path: janus_core
coverage:
needs: tests
runs-on: self-hosted
steps:
- name: Close parallel build
uses: coverallsapp/github-action@v2
with:
parallel-finished: true