2021-03-21 09:58:14 +03:00
|
|
|
name: Tests
|
|
|
|
|
2021-03-31 20:15:29 +03:00
|
|
|
on:
|
|
|
|
push:
|
2022-06-30 16:32:06 +03:00
|
|
|
# branches: [master, develop]
|
|
|
|
branches: [master]
|
2021-03-31 20:15:29 +03:00
|
|
|
pull_request:
|
2022-06-30 16:32:06 +03:00
|
|
|
# branches: [master, develop]
|
|
|
|
branches: [master]
|
2021-03-21 09:58:14 +03:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
tests:
|
2021-11-07 05:24:00 +03:00
|
|
|
runs-on: ubuntu-latest
|
2021-03-21 09:58:14 +03:00
|
|
|
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
|
|
|
|
2021-11-07 05:24:00 +03:00
|
|
|
- name: Use Python
|
|
|
|
uses: actions/setup-python@v2
|
2021-03-21 09:58:14 +03:00
|
|
|
with:
|
2021-11-07 05:24:00 +03:00
|
|
|
python-version: 3.x
|
|
|
|
|
|
|
|
- name: Use Node.js
|
|
|
|
uses: actions/setup-node@v2
|
2021-03-21 09:58:14 +03:00
|
|
|
with:
|
2021-11-07 05:24:00 +03:00
|
|
|
node-version: 16.x
|
|
|
|
cache: npm
|
|
|
|
|
|
|
|
- name: Install Pipenv
|
|
|
|
run: pip install --upgrade pip && pip install pipenv
|
|
|
|
|
|
|
|
- name: Install
|
|
|
|
run: npm install
|
2021-03-21 09:58:14 +03:00
|
|
|
|
|
|
|
- name: Run JSON tests
|
|
|
|
run: npm run test:json
|
|
|
|
|
2022-02-03 16:52:37 +03:00
|
|
|
- name: Run over HTTP tests
|
|
|
|
run: npm run test:over-http
|
|
|
|
|
2021-03-21 09:58:14 +03:00
|
|
|
- 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
|