2023-10-21 02:49:04 +00:00
|
|
|
name: Tests CI
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
test:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v4
|
|
|
|
- uses: actions/setup-node@v3
|
|
|
|
with:
|
|
|
|
node-version: 18
|
|
|
|
- uses: actions/setup-python@v4
|
|
|
|
with:
|
|
|
|
python-version: '3.10'
|
|
|
|
- name: Install requirements
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
2023-10-21 03:13:54 +00:00
|
|
|
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cpu
|
|
|
|
pip install -r requirements.txt
|
2023-10-21 02:49:04 +00:00
|
|
|
- name: Run Tests
|
|
|
|
run: |
|
2023-10-21 02:52:12 +00:00
|
|
|
npm ci
|
2023-10-21 02:49:04 +00:00
|
|
|
npm run test:generate
|
|
|
|
npm test
|
|
|
|
working-directory: ./tests-ui
|