Bump vitest from 0.33.0 to 2.0.3 in /frontend #661
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Backend | |
on: [push] | |
jobs: | |
backend: | |
name: Backend test, lint and format | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python 3.11 | |
uses: actions/setup-python@v3 | |
with: | |
python-version: 3.11 | |
- name: Install dependencies | |
run: | | |
cd backend | |
python -m pip install --upgrade pip | |
pip install -r requirements.txt | |
- name: End-to-end test | |
run: | | |
set -x | |
cd backend | |
CORS_ORIGINS='' MEDIA=.. flask --app src/app.py run & | |
TRIES=0 | |
while [[ -z "${DIR_LIST:-}" ]] && [[ "$TRIES" -le 120 ]] | |
do | |
DIR_LIST=$(curl 'http://127.0.0.1:5000/?dir=' || true) | |
((++TRIES)) | |
sleep 0.5 | |
done | |
echo "$DIR_LIST" | grep '{"name":".gitignore","type":"file","url":"/.gitignore"}' | |
echo "$DIR_LIST" | grep '{"name":"backend","type":"directory","url":"/backend"}' | |
- name: Lint | |
run: | | |
cd backend | |
pylint $(git ls-files '*.py') | |
- name: Format | |
run: | | |
cd backend | |
black . --check |