From 861d19d58e109a4cba65aeb958d82e63f35c0b33 Mon Sep 17 00:00:00 2001 From: github-actions <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 11 Apr 2026 16:34:32 +0000 Subject: [PATCH] Update from copier (2026-04-11T16:34:32) 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, 47 insertions(+), 10 deletions(-) diff --git a/.copier-answers.yaml b/.copier-answers.yaml index 3b639ce..2c166b7 100644 --- a/.copier-answers.yaml +++ b/.copier-answers.yaml @@ -1,5 +1,5 @@ # Changes here will be overwritten by Copier -_commit: 9498b78 +_commit: 6ce048e _src_path: https://github.com/python-project-templates/base.git add_docs: true add_extension: cppjswasm diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 98abe2e..b60ba45 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -118,6 +118,20 @@ jobs: CIBW_BEFORE_ALL: call "C:\Program Files\Microsoft Visual Studio\2022\Enterprise\VC\Auxiliary\Build\vcvars64.bat" if: matrix.os == 'windows-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_cppjswasm" + 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_cppjswasm" + if: matrix.os == 'ubuntu-latest' + - uses: actions/upload-artifact@v7 with: name: dist-${{matrix.os}}-${{matrix.python-version}} diff --git a/.github/workflows/docs.yaml b/.github/workflows/docs.yaml index 926d162..661471c 100644 --- a/.github/workflows/docs.yaml +++ b/.github/workflows/docs.yaml @@ -1,24 +1,47 @@ 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 - - uses: mymindstorm/setup-emsdk@v16 - - run: make develop - - run: uv pip install . - - run: uv pip install yardang + + - name: Download dist from build + uses: actions/download-artifact@v7 + with: + name: dist-ubuntu-latest-3.11 + path: dist + run-id: ${{ github.event.workflow_run.id }} + 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: | + make develop + uv pip install . + 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 f6420a4..649fde7 100644 --- a/js/package.json +++ b/js/package.json @@ -50,7 +50,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",