Skip to content

Fix poetry path

Fix poetry path #9

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: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install python dependencies
run: |
source ~/.zshrc
poetry env use ${{ matrix.python-version }}
poetry install --with dev --extras all
- name: Run test suite
env:
# show timings of tests
PYTEST_ADDOPTS: "--durations=0"
run: |
source ~/.zshrc
poetry run pytest --run-extra-mlips --cov janus_core --cov-append .
- 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