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

Implement openapi server side with pydantic type checking #195

Implement openapi server side with pydantic type checking

Implement openapi server side with pydantic type checking #195

Workflow file for this run

name: NodeJS with Webpack
on:
pull_request:
push:
branches:
- 'main'
- '*.*'
workflow_dispatch:
env:
DB_PASSWORD: gh-actions
CONFIG_FILE_PATH: ../../.github/workflows/ci.config.ini
jobs:
build:
runs-on: ubuntu-latest
services:
database:
image: mariadb
env:
MARIADB_ROOT_PASSWORD: ${{ env.DB_PASSWORD }}
MARIADB_DATABASE: helios
ports:
- 3306:3306
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node-version }}
- name: Start API server
run: |
cd monorepo/api
python -m pip install -r requirements.txt
python -m flask --app main run --debug &
- name: Make sure package can be built
run: |
cd monorepo/app
npm ci
sh build.sh
- name: Run javascript unit tests
run: |
cd monorepo/app
npm run test
- name: Run python unit tests
run: |
cd monorepo/api
python -m pytest
- name: Make sure code conforms to prettier standards
run: |
cd monorepo/app
npm run prettier-test