-
Notifications
You must be signed in to change notification settings - Fork 48
66 lines (55 loc) · 2.03 KB
/
Copy pathweekly.yml
File metadata and controls
66 lines (55 loc) · 2.03 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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
name: Weekly Comprehensive Tests
# Full suite (incl. slow + integration markers via `poe test-all`) across every
# supported Python plus a macOS leg. Runs weekly and on manual dispatch.
on:
schedule:
# Sunday at 11pm UTC (6pm EST, 3pm PST)
- cron: "0 23 * * 0"
workflow_dispatch:
jobs:
test-full:
runs-on: ${{ matrix.os }}
timeout-minutes: 60
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
python-version: ['3.11', '3.12', '3.13']
include:
# Add macOS for one Python version to catch platform-specific issues
- os: macos-latest
python-version: '3.12'
steps:
- name: Checkout Code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- name: Install uv
uses: astral-sh/setup-uv@08807647e7069bb48b6ef5acd8ec9567f424441b # v8.1.0
with:
version: "0.7.6"
enable-cache: true
cache-dependency-glob: "uv.lock"
- name: Set up Python ${{ matrix.python-version }}
run: uv python install ${{ matrix.python-version }}
- name: Install dependencies
run: uv sync --extra all
- name: Cache HF niftis dataset
uses: actions/cache@27d5ce7f107fe9357f9df03efb73ab90386fccae # v5.0.5
with:
path: ~/.cache/huggingface
key: hf-cache-${{ runner.os }}-${{ hashFiles('nltools/templates/fetch.py') }}
restore-keys: |
hf-cache-${{ runner.os }}-
- name: Lint with ruff
run: uv run ruff check nltools/
- name: Run all tests (including slow + integration)
env:
HF_HUB_ETAG_TIMEOUT: "30"
run: uv run poe test-all
- name: Build docs (API generation + MyST site smoke)
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
run: |
uv run poe docs-generate
cd docs && uv run myst build --html
- name: Build package
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.12'
run: uv build