Repository navigation
53 lines (49 loc) · 1.53 KB
/
Copy pathci.yml
File metadata and controls
53 lines (49 loc) · 1.53 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
name: CI
on:
push:
pull_request:
workflow_dispatch:
permissions:
contents: read
jobs:
test:
name: Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.12"]
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Install CPU dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --index-url https://download.pytorch.org/whl/cpu torch
python -m pip install Pillow aiohttp numpy scipy av pytest
- name: Run offline distribution tests
env:
NO_PROXY: "*"
run: python -m pytest tests -q --import-mode=importlib -p no:cacheprovider --confcutdir=tests
javascript:
name: JavaScript syntax
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v7
- name: Check shipped JavaScript syntax
shell: bash
run: |
found=0
while IFS= read -r -d '' file; do
node --check "$file"
found=1
done < <(find web -type f \( -name '*.js' -o -name '*.mjs' \) -print0)
test "$found" -eq 1
node --experimental-vm-modules tests/test_frontend_alias_compat.mjs .
node --test tests/test_wan3_frontend.mjs tests/test_wan3_halo_housing.mjs