diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 69f496c..600ffd1 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,9 @@ jobs: poetry-version: ${{ matrix.poetry-version }} - name: 🐍 Install dependencies - run: poetry install + run: | + pip install poetry-dynamic-versioning + poetry install - name: 🔥 Test run: poetry run tox diff --git a/{{cookiecutter.project_name}}/.github/workflows/ci.yml b/{{cookiecutter.project_name}}/.github/workflows/ci.yml index 52c1d73..9441f77 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/ci.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/ci.yml @@ -33,7 +33,9 @@ jobs: poetry-version: ${{ "{{" }} matrix.poetry-version }} - name: 🐍 Install dependencies - run: poetry install + run: | + pip install poetry-dynamic-versioning + poetry install - name: 🔥 Test run: poetry run tox @@ -50,7 +52,10 @@ jobs: - name: 🔼 Publish to Test PyPI uses: pypa/gh-action-pypi-publish@master - if: env.ENABLE_TEST_PYPI_PUBLISH + if: | + env.ENABLE_TEST_PYPI_PUBLISH && + github.event_name == 'push' && + startsWith(github.ref, 'refs/tags') with: password: ${{ "{{" }} secrets.TEST_PYPI_API_TOKEN }} repository_url: https://test.pypi.org/legacy/