From bbd66ba10591ac7a549603a2294c163f553aa9b3 Mon Sep 17 00:00:00 2001 From: Mawoka Date: Sat, 16 Apr 2022 22:01:35 +0200 Subject: [PATCH] :bug: Fixed pytest.yml --- .github/workflows/pytest.yml | 2 ++ run_tests.sh | 1 + 2 files changed, 3 insertions(+) diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 01b6a07..e312129 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -26,6 +26,8 @@ jobs: - run: pipenv install --dev - name: Prepare tests run: | + echo ${{ secrets.DOTENV }} | base64 --decode > .env + set -o allexport; source .env; set +o allexport chmod +x run_tests.sh - name: Run tests run: | diff --git a/run_tests.sh b/run_tests.sh index 35dc8be..fb1e64c 100755 --- a/run_tests.sh +++ b/run_tests.sh @@ -9,6 +9,7 @@ stop() { } init() { + mkdir /tmp/storage docker run --rm -d -p 6379:6379 --name test_redis redis:alpine docker run -it --rm -d -p 7700:7700 --name test_meili getmeili/meilisearch:latest pipenv run python3 init_db.py