-
-
Notifications
You must be signed in to change notification settings - Fork 10
111 lines (105 loc) · 3.72 KB
/
Copy pathci.yml
File metadata and controls
111 lines (105 loc) · 3.72 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
108
109
110
111
name: CI
on:
push:
branches: [main]
# Any base, not just main: a stacked PR targets the branch below it and would
# otherwise merge with no CI of its own.
pull_request:
jobs:
go:
name: Go build + test
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-go@b7ad1dad31e06c5925ef5d2fc7ad053ef454303e # v7.0.0
with:
go-version: '1.23'
cache: false # stdlib-only module: no go.sum to key a cache on
- name: Sync embedded backend + PodStack commands
working-directory: cli
shell: bash # go:generate shells out to `sh sync.sh`, which needs sh on PATH
run: go generate ./... # files/ and commands/ are generated, not committed; go:embed fails without them
- name: Build
working-directory: cli
run: go build ./...
- name: Vet
working-directory: cli
run: go vet ./...
- name: Test
working-directory: cli
run: go test ./...
typescript:
name: TypeScript build + typecheck
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "20"
cache: "npm"
- run: npm ci
- run: npx tsc --noEmit
- run: npm test
- run: npm run build
remotion-bundle:
name: Remotion release bundle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1
with:
persist-credentials: false
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020
with:
node-version: "20"
cache: "npm"
cache-dependency-path: remotion/package-lock.json
- run: sh scripts/build-remotion.sh dist/remotion-bundle
- working-directory: dist/remotion-bundle
run: node --input-type=module --eval "await Promise.all(['@remotion/bundler', '@remotion/renderer', 'remotion', 'react', 'react-dom'].map((name) => import(name))); import.meta.resolve('@fontsource/dm-sans/400.css')"
docs-drift:
name: Docs drift check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "20"
- run: node scripts/gen-docs-manifest.mjs
- run: node scripts/check-docs-drift.mjs
python:
name: Python tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest, windows-latest]
steps:
- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
with:
persist-credentials: false
- uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0
with:
python-version: "3.12"
cache: "pip"
- name: Install minimal test deps
# Skip whisper/torch — tests don't exercise them and they balloon CI time.
run: |
python -m pip install --upgrade pip
pip install pytest numpy Pillow python-dotenv questionary opencv-python-headless
- name: Run pytest
run: pytest tests/ -v