Skip to content
This repository has been archived by the owner on Feb 8, 2024. It is now read-only.

clean up

clean up #4199

Workflow file for this run

name: Test
on:
workflow_dispatch:
pull_request:
env:
# Disable Tensorflow information messages
TF_CPP_MIN_LOG_LEVEL: 3
jobs:
test-run:
name: Run tests
if: github.event.pull_request.user.login != 'gitlocalize-app[bot]'
runs-on: ubuntu-latest
env:
NODE_OPTIONS: --max-old-space-size=8192
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16"
cache: "npm"
- run: npm ci
- name: Install Python 3.10
uses: actions/setup-python@v4
with:
python-version: '3.10'
- name: Load pip cache
uses: actions/cache@v3
with:
path: ~/.cache/pip
key: py-${{ hashFiles('converter/textbook-converter/requirements.txt') }}-${{ hashFiles('converter/textbook-converter/requirements-test.txt') }}
- name: Install Python dependencies
run: pip install -r converter/textbook-converter/requirements.txt -r converter/textbook-converter/requirements-test.txt
- name: Apply configuration
run: npm run setup:secrets -- --mongo ${{ secrets.STAGING_MONGODB_URI }}
- name: Build
run: npm run build
- name: Cypress tests
uses: cypress-io/github-action@v3
with:
start: npm start
wait-on: "http://localhost:8080/health"