diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f9bafb7..336de06 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -2,7 +2,13 @@ name: Publish Python Package on: release: - types: [created, edited] + types: [created] + workflow_run: + workflows: ["Run Tests"] + types: + - completed + branches: + - master jobs: test: @@ -26,6 +32,7 @@ jobs: run: | pytest deploy: + if: ${{ github.event.workflow_run.conclusion == 'success' }} runs-on: ubuntu-latest needs: [test] environment: release diff --git a/pyproject.toml b/pyproject.toml index fe031dc..cfbd30e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -24,7 +24,7 @@ dependencies = [ "pytest-flakes", "pytest-ruff", "pytidylib", - "dc-design-system @ git+https://github.com/DemocracyClub/design-system.git@0.4.6", + "dc-design-system @ git+https://github.com/DemocracyClub/design-system.git@0.5.0", "whitenoise", "pysass", "jsmin<3.1", diff --git a/requirements/dev.txt b/requirements/dev.txt index f0cd403..a4580ee 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -17,7 +17,7 @@ pytest-mock pytest-flakes pytest-ruff pytidylib -git+https://github.com/DemocracyClub/design-system.git@0.4.6 +git+https://github.com/DemocracyClub/design-system.git@0.5.0 whitenoise pysass jsmin<3.1 \ No newline at end of file diff --git a/tests/testapp/settings.py b/tests/testapp/settings.py index 7781389..663449e 100644 --- a/tests/testapp/settings.py +++ b/tests/testapp/settings.py @@ -24,7 +24,7 @@ SECRET_KEY = "testing_only_s#=1z=a46wziq#k+@$3_xtt*t*rm5rk)gq3*-tw67+-%z6-x0^" # SECURITY WARNING: don't run with debug turned on in production! -DEBUG = True +DEBUG = False ALLOWED_HOSTS = ["*"]