Repository navigation
107 lines (100 loc) · 3.71 KB
/
Copy pathci.yml
File metadata and controls
107 lines (100 loc) · 3.71 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
name: Tests
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
concurrency:
group: tests-${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
env:
OPENBLAS_NUM_THREADS: "1"
OMP_NUM_THREADS: "1"
PYTHONUNBUFFERED: "1"
jobs:
visual:
name: Visual / ${{ matrix.os }} / Python ${{ matrix.python }}
runs-on: ${{ matrix.os }}
timeout-minutes: 15
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
python: ["3.12", "3.13"]
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
persist-credentials: false
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: ${{ matrix.python }}
- name: Install FFmpeg on Linux
if: runner.os == 'Linux'
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
- name: Install FFmpeg on macOS
if: runner.os == 'macOS'
run: brew install ffmpeg
- name: Install FFmpeg on Windows
if: runner.os == 'Windows'
shell: pwsh
run: |
choco install ffmpeg --yes --no-progress
if ($LASTEXITCODE -ne 0) { throw "FFmpeg installation failed." }
"C:\ProgramData\chocolatey\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append
- name: Install visual base
run: python -m pip install .
- name: Verify tools and installed entry points
run: |
python -m pip check
ffmpeg -version
ffprobe -version
dvidia-train --help
dvidia-training-studio --help
dvidia-training-benchmark --help
dvidia-skillspace-coverage --help
dvidia-episode-tape --help
dvidia-training-doctor --json
- name: Test footage, visual training and loopback studio
run: python -m unittest tests.test_footage_data tests.test_footage_train tests.test_footage_pipeline tests.test_footage_benchmark tests.test_training_studio tests.test_doctor tests.test_coverage tests.test_episode_tape -v
arm:
name: Optional arm / Linux / Python 3.12
runs-on: ubuntu-latest
timeout-minutes: 20
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
persist-credentials: false
- uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
with:
python-version: "3.12"
- name: Install FFmpeg and arm extra
run: |
sudo apt-get update
sudo apt-get install -y ffmpeg
python -m pip install ".[arm]"
python -m pip check
- name: Test native arm and candidate capsule
run: python -m unittest discover -s tests -v
- name: Train and qualify the synthetic native pilot
run: python benchmarks/native_pilot.py --output runs/native-pilot
container:
name: Visual CLI container
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5.1.0
with:
persist-credentials: false
- name: Build CPU image
run: docker build -t dvidia-training:ci .
- name: Check CLI with networking disabled
run: docker run --rm --network none dvidia-training:ci --help
- name: Train and verify with networking disabled
run: >-
docker run --rm --network none --entrypoint sh dvidia-training:ci -c
'dvidia-train example --clips 5 --output /workspace/source &&
dvidia-train run /workspace/source --output /workspace/trained &&
dvidia-train inspect /workspace/trained'