-
Notifications
You must be signed in to change notification settings - Fork 8
53 lines (43 loc) · 1.23 KB
/
mac.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
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: uv run pytest --run-extra-mlips --cov janus_core --cov-append .
- name: Set Path
run: |
source ~/.zshrc
echo "PATH=$PATH" >> $GITHUB_ENV
- 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