Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .copier-answers.yaml
Original file line number Diff line number Diff line change
@@ -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: jupyter
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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_jupyter"
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_jupyter"
if: matrix.os == 'ubuntu-latest'

- uses: actions/upload-artifact@v7
with:
name: dist-${{matrix.os}}
Expand Down
39 changes: 33 additions & 6 deletions .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Loading