1
1
mirror of https://github.com/leon-ai/leon.git synced 2024-12-01 11:25:01 +03:00
leon/.github/workflows/tests.yml
2021-03-22 20:23:43 +01:00

45 lines
1.1 KiB
YAML

name: Tests
on: [push, pull_request]
jobs:
tests:
runs-on: ubuntu-20.04
container: leonai/ci:latest
steps:
- uses: actions/checkout@v2
- name: Cache node_modules
uses: actions/cache@v2
with:
path: node_modules
key: ${{ runner.os }}-node_modules-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node_modules-
- name: Cache Pipenv
uses: actions/cache@v2
with:
path: bridges/python/.venv
key: ${{ runner.os }}-pipenv-${{ env.cache-name }}-${{ hashFiles('bridges/python/Pipfile.lock') }}
restore-keys: |
${{ runner.os }}-pipenv-
- name: Install npm dependencies
run: npm ci
- name: Run JSON tests
run: npm run test:json
- name: Run E2E tests
run: npm run test:e2e
- name: Install offline STT
run: npm run setup:offline-stt
- name: Install offline TTS
run: npm run setup:offline-tts
- name: Run unit tests
run: npm run test:unit