From 6e40321a832e33f3d681ca7b47e4f9a30a6c2956 Mon Sep 17 00:00:00 2001 From: Eli Fine Date: Sun, 3 Aug 2025 12:47:42 +0000 Subject: [PATCH 1/2] tweak --- template/.github/workflows/publish.yaml.jinja | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/template/.github/workflows/publish.yaml.jinja b/template/.github/workflows/publish.yaml.jinja index bf1691ad..74853d8b 100644 --- a/template/.github/workflows/publish.yaml.jinja +++ b/template/.github/workflows/publish.yaml.jinja @@ -185,13 +185,13 @@ jobs: - name: Sleep to allow PyPI Index to update before proceeding to the next step uses: juliangruber/sleep-action@{% endraw %}{{ gha_sleep }}{% raw %} with: - time: 60s{% endraw %}{% endif %}{% raw %} + time: 90s{% endraw %}{% endif %}{% raw %} - name: Install from staging registry run: pip install --index-url https://test.pypi.org/simple/ --extra-index-url https://www.pypi.org/simple {% endraw %}{{ package_name | replace('_', '-') }}{% raw %}==${{ needs.get-values.outputs.package-version }} - name: Display dependencies run: pip list - name: Confirm library can be imported successfully - run: python -c "import {% endraw %}{{ package_name | replace('-', '_') }}{% raw %}" + run: python -c "import sys; print(f'Python version {sys.version}'); import {% endraw %}{{ package_name | replace('-', '_') }}{% raw %}" create-tag: name: Create the git tag @@ -278,10 +278,10 @@ jobs: - name: Sleep to allow PyPI Index to update before proceeding to the next step uses: juliangruber/sleep-action@{% endraw %}{{ gha_sleep }}{% raw %} with: - time: 60s{% endraw %}{% endif %}{% raw %} + time: 90s{% endraw %}{% endif %}{% raw %} - name: Install from primary registry run: pip install {% endraw %}{{ package_name | replace('_', '-') }}{% raw %}==${{ needs.get-values.outputs.package-version }} - name: Display dependencies run: pip list - name: Confirm library can be imported successfully - run: python -c "import {% endraw %}{{ package_name | replace('-', '_') }}{% raw %}"{% endraw %} + run: python -c "import sys; print(f'Python version {sys.version}'); import {% endraw %}{{ package_name | replace('-', '_') }}{% raw %}"{% endraw %} From c7ece3f1fa912070023ebb59b5e18d13eba49719 Mon Sep 17 00:00:00 2001 From: Eli Fine Date: Sun, 3 Aug 2025 12:48:11 +0000 Subject: [PATCH 2/2] tag perm --- template/.github/workflows/publish.yaml.jinja | 2 ++ 1 file changed, 2 insertions(+) diff --git a/template/.github/workflows/publish.yaml.jinja b/template/.github/workflows/publish.yaml.jinja index 74853d8b..a56bba2a 100644 --- a/template/.github/workflows/publish.yaml.jinja +++ b/template/.github/workflows/publish.yaml.jinja @@ -197,6 +197,8 @@ jobs: name: Create the git tag if: ${{ github.event.inputs.publish_to_primary }} needs: [ install-from-staging ] + permissions: + contents: write # needed to push the tag runs-on: {% endraw %}{{ gha_linux_runner }}{% raw %} steps: - name: Checkout code