From ecd4990b2ce8ed60ad46c7b6b5825e5d365621ed Mon Sep 17 00:00:00 2001 From: Xenepix Date: Mon, 18 Dec 2023 14:54:51 +0100 Subject: [PATCH] tmp --- .github/workflows/mkdocs.yml | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/.github/workflows/mkdocs.yml b/.github/workflows/mkdocs.yml index 511d0bcf..6175d1a6 100644 --- a/.github/workflows/mkdocs.yml +++ b/.github/workflows/mkdocs.yml @@ -52,9 +52,21 @@ jobs: path: .cache restore-keys: | mkdocs-material- - - run: | - pip install -r requirements/development.txt - coverage run tests/test_app/manage.py test -v2 --keepdb - coverage html - coverage report + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install pip-tools + pip-compile ./requirements/development.txt --output-file ./full-requirements.txt --resolver=backtracking + pip install -r ./full-requirements.txt + - name: Tests with coverage + run: | + export PYTHONPATH="$PYTHONPATH:./django-napse/" + export NAPSE_IS_IN_PIPELINE=True + cd tests/test_app + bash setup_secrets.sh + cd ../.. + python3 tests/test_app/manage.py makemigrations && python3 tests/test_app/manage.py migrate + coverage run ./tests/test_app/manage.py test -v2 --keepdb && coverage html + - name: Deploy documentation + run: | mkdocs gh-deploy --force