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 .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -157,4 +157,4 @@ cython_debug/
# be found at https://github.com/github/gitignore/blob/main/Global/JetBrains.gitignore
# and can be added to the global gitignore or merged into this file. For a more nuclear
# option (not recommended) you can uncomment the following to ignore the entire idea folder.
#.idea/
.idea/*
2 changes: 1 addition & 1 deletion tests/test_template.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ def test_project(project):

"""
# Just a basic sanity test.
assert len(list(project.iterdir())) == 4
assert len(list(project.iterdir())) == 6
return


Expand Down
29 changes: 29 additions & 0 deletions {{cookiecutter.project_slug}}/ExampleGitHubAction.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build # Workflow name - this is what will appear in the "Actions" tab of the repo and the "checks" section of the PR
# To use this action you can copy this over to .github/workflows and GitHub will automatically recognize it and run when you push a change.
# This workflow assumes you are using pip to install requirements and that the requirements are in a requirements.txt file

on: # Define the triggers that will cause the workflow to run
push:
workflow_dispatch:
repository_dispatch:

jobs:
# Build job
build:
runs-on: ubuntu-latest # This is the VM type that will run it.
steps: # The actions that define the workflow
- uses: actions/checkout@v4 # Check out the repo
- name: Install Python
uses: actions/setup-python@v5 # Install Python
with:
python-version: "3.13" # Define the version of Python that is needed
- name: Install dependencies
run: | # Tasks to run. First update pip, then install all the requirements.
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Build the site
run: render-engine build # Render your site.
- uses: actions/upload-artifact@v4 # Upload (and therefor preserve) the rendered site.
with:
name: website
path: ./output # If you are using the default output directory this is fine, otherwise change it to the directory you are using.
29 changes: 29 additions & 0 deletions {{cookiecutter.project_slug}}/ExampleGitHubActionUV.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: Build # Workflow name - this is what will appear in the "Actions" tab of the repo and the "checks" section of the PR
# To use this action you can copy this over to .github/workflows and GitHub will automatically recognize it and run when you push a change.
# This workflow is for the case where you are using uv.

on: # Define the triggers that will cause the workflow to run
push:
workflow_dispatch:
repository_dispatch:

jobs:
# Build job
build:
runs-on: ubuntu-latest # This is the VM type that will run it.
steps: # The actions that define the workflow
- uses: actions/checkout@v4 # Check out the repo
- name: Install Python
uses: actions/setup-python@v5 # Install Python
with:
python-version: "3.13" # Define the version of Python that is needed
- name: Install dependencies
run: | # Tasks to run. First update pip, then install uv.
python -m pip install --upgrade pip
pip install uv
- name: Build the site
run: uv run render-engine build # Render your site. Calling uv run will handle all the necessary requirements.
- uses: actions/upload-artifact@v4 # Upload (and therefor preserve) the rendered site.
with:
name: website
path: ./output # If you are using the default output directory this is fine, otherwise change it to the directory you are using.