-
Notifications
You must be signed in to change notification settings - Fork 349
48 lines (48 loc) · 1.4 KB
/
Copy pathtests.yml
File metadata and controls
48 lines (48 loc) · 1.4 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
name: PR tests
on:
pull_request:
push:
branches: [master]
merge_group:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: pr-tests-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
jobs:
regression-and-smoke:
name: Regression and notebook smoke tests
runs-on: ubuntu-24.04
timeout-minutes: 30
env:
MPLBACKEND: Agg
SDL_VIDEODRIVER: dummy
SDL_AUDIODRIVER: dummy
OMP_NUM_THREADS: '1'
MKL_NUM_THREADS: '1'
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- uses: actions/setup-python@v5
with:
python-version: '3.13'
cache: pip
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install torch==2.13.0 torchvision==0.28.0 --index-url https://download.pytorch.org/whl/cpu
python -m pip install -r requirements.txt
python -m pip check
- name: Regression and environment integration tests
run: python -m unittest discover -s tests -v
- name: Execute notebook smoke tests
run: python scripts/check_notebooks.py --mode smoke
- name: Retain notebook logs and metrics
if: always()
uses: actions/upload-artifact@v4
with:
name: notebook-smoke
path: artifacts/
retention-days: 14