-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (42 loc) · 1.15 KB
/
Copy pathci.yml
File metadata and controls
51 lines (42 loc) · 1.15 KB
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
name: Test with MUSE2
on:
push:
branches: [main]
pull_request:
schedule:
- cron: 0 5 * * 1
workflow_dispatch:
release:
types: [published]
jobs:
test:
name: Run Pytest
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
steps:
- uses: actions/checkout@v7
- uses: astral-sh/setup-uv@v7
with:
enable-cache: true
prune-cache: false
activate-environment: true
python-version: '3.14'
- name: Install dependencies
run: uv sync
- name: Setup MUSE2 from main
uses: ./.github/actions/setup-muse2-main
- name: Verify MUSE2 installation
uses: ./.github/actions/verify-muse2
- name: Run tests
run: pytest
- name: Upload coverage to Codecov
# Latest linux release only - they should all be the same
if: runner.os == 'Linux' && github.event_name == 'release'
uses: codecov/codecov-action@v7
with:
token: ${{ secrets.CODECOV_TOKEN }}
files: ./coverage.xml
fail_ci_if_error: true