-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
6 additions
and
5 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
"""Unit tests using pytest. | ||
""" | ||
import os | ||
import json | ||
import asyncio | ||
from datetime import datetime | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
#!/bin/sh | ||
export SQLALCHEMY_DATABASE_URL="sqlite:///:memory:" | ||
export CUDA_VISIBLE_DEVICES="" | ||
pipenv run "pytest backend" | ||
export CI=true | ||
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:" && \ | ||
export CUDA_VISIBLE_DEVICES="" && \ | ||
pipenv run "pytest backend" &&\ | ||
export CI=true && \ | ||
yarn test |