-
Notifications
You must be signed in to change notification settings - Fork 19
70 lines (57 loc) · 2.35 KB
/
run-tests-cpu.yaml
File metadata and controls
70 lines (57 loc) · 2.35 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
67
68
69
70
name: '[CPU] mostlyai-engine Tests'
on:
workflow_call:
env:
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring
FORCE_COLOR: '1'
jobs:
run-tests-cpu-unit-sequential:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Setup | Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
submodules: 'recursive'
- name: Setup | uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a # v7.1.5
with:
enable-cache: false
python-version: '3.11'
- name: Setup | Dependencies
run: |
uv sync --frozen --only-group dev --only-group docs
uv pip install --index-strategy unsafe-first-match torch==2.11.0+cpu torchvision==0.26.0+cpu torchaudio==2.11.0+cpu . --extra-index-url https://download.pytorch.org/whl/cpu
- name: Run | Tests -> unit
run: uv run --no-sync pytest tests/unit
- name: Build mkdocs
run: uv run --no-sync mkdocs build --strict
- name: Run tests -> end_to_end -> sequential
run: uv run --no-sync pytest tests/end_to_end/test_tabular_sequential.py
- name: Run tests -> end_to_end -> sequential context
run: uv run --no-sync pytest tests/end_to_end/test_tabular_sequential_context.py
run-tests-cpu-end-to-end-nonsequential:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- name: Setup | Checkout
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
with:
fetch-depth: 0
submodules: 'recursive'
- name: Setup | uv
uses: astral-sh/setup-uv@ed21f2f24f8dd64503750218de024bcf64c7250a # v7.1.5
with:
enable-cache: false
python-version: '3.11'
- name: Setup | Dependencies
run: |
uv sync --frozen --only-group dev
uv pip install --index-strategy unsafe-first-match torch==2.11.0+cpu torchvision==0.26.0+cpu torchaudio==2.11.0+cpu . --extra-index-url https://download.pytorch.org/whl/cpu
- name: Run tests -> end_to_end all except sequential
run: uv run --no-sync pytest --ignore=tests/end_to_end/test_tabular_sequential.py --ignore=tests/end_to_end/test_tabular_sequential_context.py tests/end_to_end/