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