Skip to content

Commit

Permalink
make test run backend and clean up dev requirements
Browse files Browse the repository at this point in the history
  • Loading branch information
teticio committed Aug 3, 2022
1 parent 7cf9e6b commit 14e81fd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 8 deletions.
8 changes: 0 additions & 8 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
fastapi
tensorflow
uvicorn
sqlalchemy
aiohttp
aiofiles
librosa
fastapi-cache2
yapf
pytest
pylint
Expand Down
3 changes: 3 additions & 0 deletions run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#!/usr/bin/env bash
APP_URL=http://localhost:3000 NO_CACHE=1 uvicorn backend.main:app --port=8001 &
backendPID=$!
pipenv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics && \
pipenv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics && \
export SQLALCHEMY_DATABASE_URL="sqlite:///:memory:" && \
Expand All @@ -7,3 +9,4 @@ export NO_CACHE='1' && \
pipenv run pytest backend &&\
export CI=true && \
yarn test
kill $backendPID

0 comments on commit 14e81fd

Please sign in to comment.