Added and updated tests

This commit is contained in:
Mawoka
2022-04-16 19:43:30 +02:00
parent a561537f05
commit 14008cfbee
9 changed files with 411 additions and 254 deletions
+2 -6
View File
@@ -26,14 +26,10 @@ jobs:
- run: pipenv install --dev
- name: Prepare tests
run: |
echo ${{ secrets.DOTENV }} | base64 --decode > .env
set -o allexport; source .env; set +o allexport
mkdir /tmp/storage/
pipenv run python init_db.py
docker run --rm -d -p 6379:6379 --name test_redis redis:alpine
chmod +x run_tests.sh
- name: Run tests
run: |
pipenv run coverage run -m pytest --asyncio-mode=strict classquiz/tests
./run_tests.sh
pipenv run coverage xml
- name: Report results to DeepSource
run: |