Skip to content

Run feedback

Run feedback #97

Workflow file for this run

name: Build Files and Run Tests
on:
pull_request:
branches:
- main
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout Code
uses: actions/checkout@v3
- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: "yarn"
cache-dependency-path: "zt_frontend/yarn.lock"
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: 3.9
cache: "pip"
- name: Build and Copy Dev
run: |
npm install --global yarn
cd zt_frontend
yarn install
yarn run build
cd ..
rm -rf zt_backend/dist_dev
mkdir -p zt_backend/dist_dev
cp -r zt_frontend/dist/* zt_backend/dist_dev
- name: Build and Copy App
run: |
cd zt_frontend
yarn install
yarn run buildapp
cd ..
rm -rf zt_backend/dist_app
mkdir -p zt_backend/dist_app
cp -r zt_frontend/dist/* zt_backend/dist_app
- name: Build Docs
run: |
python -m pip install --upgrade pip
pip install .
pip install -r docs/requirements.txt
sphinx-build -b html docs docs/html
- name: Install dependencies and run tests
run: |
pytest zt_backend/tests/