From b3eb24f4477ca7746d04408c6bb97a364644354f Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 11 Apr 2026 16:57:50 +0000 Subject: [PATCH 1/2] Update from copier (2026-04-11T16:57:50) Signed-off-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com> --- .copier-answers.yaml | 2 +- .github/workflows/build.yaml | 14 +++++++++++++ .github/workflows/docs.yaml | 39 ++++++++++++++++++++++++++++++------ js/package.json | 2 +- 4 files changed, 49 insertions(+), 8 deletions(-) diff --git a/.copier-answers.yaml b/.copier-answers.yaml index e30a0e0..c3e7806 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: 9498b78 +_commit: 2a8d256 _src_path: https://github.com/python-project-templates/base.git add_docs: true add_extension: js diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 4db7ea5..b7fe579 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -84,6 +84,20 @@ jobs: run: make dist if: matrix.os == 'ubuntu-latest' + - name: Test wheel install + run: | + python -m venv /tmp/test-wheel + /tmp/test-wheel/bin/pip install dist/*.whl + /tmp/test-wheel/bin/python -c "import python_template_js" + if: matrix.os == 'ubuntu-latest' + + - name: Test sdist install + run: | + python -m venv /tmp/test-sdist + /tmp/test-sdist/bin/pip install dist/*.tar.gz + /tmp/test-sdist/bin/python -c "import python_template_js" + if: matrix.os == 'ubuntu-latest' + - uses: actions/upload-artifact@v7 with: name: dist-${{matrix.os}} diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index d1064c8..2cc9df8 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -1,22 +1,49 @@ name: Publish Docs on: - push: - branches: - - main + workflow_run: + workflows: ["Build Status"] + branches: [main] + types: [completed] workflow_dispatch: + permissions: + actions: read contents: write + jobs: docs: runs-on: ubuntu-latest + if: ${{ github.event.workflow_run.conclusion == 'success' || github.event_name == 'workflow_dispatch' }} steps: - uses: actions/checkout@v6 - uses: actions-ext/python/setup@main - - uses: actions-ext/node/setup@main - - run: uv pip install .[develop] - - run: uv pip install yardang + + - name: Download dist from build + uses: actions/download-artifact@v7 + with: + pattern: dist-ubuntu-latest* + merge-multiple: true + path: dist + run-id: ${{ github.event.workflow_run.id }} + github-token: ${{ secrets.GITHUB_TOKEN }} + repository: ${{ github.repository }} + if: github.event_name == 'workflow_run' + + - name: Install from wheel + run: | + uv pip install dist/*.whl + uv pip install yardang + if: github.event_name == 'workflow_run' + + - name: Install from source (manual trigger) + run: | + uv pip install .[develop] + uv pip install yardang + if: github.event_name == 'workflow_dispatch' + - run: yardang build + - uses: peaceiris/actions-gh-pages@v4 with: publish_branch: gh-pages diff --git a/js/package.json b/js/package.json index 7feba97..2e1a048 100644 --- a/js/package.json +++ b/js/package.json @@ -43,7 +43,7 @@ "devDependencies": { "@playwright/test": "^1.59.1", "cpy": "^13.2.1", - "esbuild": "^0.27.3", + "esbuild": "^0.27.4", "lightningcss": "^1.29.3", "http-server": "^14.1.1", "nodemon": "^3.1.10", From 2677a7831e4b31799320c49ecf82aeb0b912e8bd Mon Sep 17 00:00:00 2001 From: Tim Paine <3105306+timkpaine@users.noreply.github.com> Date: Sat, 11 Apr 2026 13:02:38 -0400 Subject: [PATCH 2/2] update lockfile --- js/pnpm-lock.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/pnpm-lock.yaml b/js/pnpm-lock.yaml index 91a810d..3b17b3f 100644 --- a/js/pnpm-lock.yaml +++ b/js/pnpm-lock.yaml @@ -15,7 +15,7 @@ importers: specifier: ^13.2.1 version: 13.2.1 esbuild: - specifier: ^0.27.3 + specifier: ^0.27.4 version: 0.27.7 http-server: specifier: ^14.1.1