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
3 changes: 3 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@ omit =
*/vendor_files/*
# omit any auto-generated API client code
*/generated/open_api/*
# omit CircuitPython firmware
*/firmware/code.py
*/firmware/boot.py

[report]
# Regexes for lines to exclude from consideration
Expand Down
8 changes: 5 additions & 3 deletions extensions/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]:
context["pydantic_version"] = "2.12.4"
context["pyinstaller_version"] = "6.16.0"
context["setuptools_version"] = "80.7.1"
context["strawberry_graphql_version"] = "0.284.1"
context["strawberry_graphql_version"] = "0.287.0"
context["fastapi_version"] = "0.121.0"
context["fastapi_offline_version"] = "1.7.4"
context["uvicorn_version"] = "0.38.0"
Expand All @@ -50,7 +50,7 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]:
context["python_kiota_bundle_version"] = "1.9.7"
#######
context["node_version"] = "24.7.0"
context["nuxt_ui_version"] = "^4.1.0"
context["nuxt_ui_version"] = "^4.2.1"
context["nuxt_version"] = "^4.2.0"
context["nuxt_icon_version"] = "^2.1.0"
context["typescript_version"] = "^5.9.3"
Expand All @@ -66,7 +66,7 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]:
context["nuxt_eslint_version"] = "^1.10.0"
context["zod_version"] = "^4.1.12"
context["zod_from_json_schema_version"] = "^0.5.1"
context["types_node_version"] = "^24.10.0"
context["types_node_version"] = "^24.10.1"
context["nuxt_apollo_version"] = "5.0.0-alpha.15"
context["graphql_codegen_cli_version"] = "^6.0.0"
context["graphql_codegen_typescript_version"] = "^5.0.0"
Expand Down Expand Up @@ -110,6 +110,8 @@ def hook(self, context: dict[Any, Any]) -> dict[Any, Any]:
context["debian_release_name"] = "bookworm"
context["alpine_image_version"] = "3.22"
context["nginx_image_version"] = "1.29.1"
#######
context["kiota_cli_version"] = "1.29.0"
# These also in the tests/data.yml files in this repository and in copier.yaml
context["py312_version"] = "3.12.7" # ReadTheDocs does not yet support 3.12.8
context["py313_version"] = "3.13.2"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ jobs:
uses: ben-z/gh-action-mutex@{% endraw %}{{ gha_mutex }}{% raw %}
with:
branch: mutex-${{ inputs.repository }}-${{ inputs.image_name }}
timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %} # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it
timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %} # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it

- name: Test if docker image exists
if: ${{ inputs.push-role-name != 'no-push' }}
Expand Down
2 changes: 1 addition & 1 deletion template/.github/workflows/ci.yaml.jinja-base
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ jobs:
uses: ben-z/gh-action-mutex@{% endraw %}{{ gha_mutex }}{% raw %}
with:
branch: mutex-venv-${{ matrix.os }}-${{ matrix.python-version }}
timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %} # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it
timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %} # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it

- name: Cache Pre-commit hooks
uses: actions/cache@{% endraw %}{{ gha_cache }}{% raw %}
Expand Down
2 changes: 1 addition & 1 deletion template/.github/workflows/pre-commit.yaml.jinja-base
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ jobs:
uses: ben-z/gh-action-mutex@{% endraw %}{{ gha_mutex }}{% raw %}
with:
branch: mutex-venv-{% endraw %}{{ gha_linux_runner }}{% raw %}-py${{ inputs.python-version }}-nodejs-${{ inputs.node-version }}
timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %} # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it
timeout-minutes: {% endraw %}{{ gha_medium_timeout_minutes }}{% raw %} # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it

- name: Cache Pre-commit hooks
uses: actions/cache@{% endraw %}{{ gha_cache }}{% raw %}
Expand Down
2 changes: 1 addition & 1 deletion template/README.md.jinja-base
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
[![Copier](https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/copier-org/copier/master/img/badge/badge-black.json)](https://github.com/copier-org/copier)
[![Actions status](https://www.github.com/{% endraw %}{{ repo_org_name }}/{{ repo_name }}{% raw %}/actions/workflows/ci.yaml/badge.svg?branch=main)](https://www.github.com/{% endraw %}{{ repo_org_name }}/{{ repo_name }}{% raw %}/actions)
[![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://www.github.com/{% endraw %}{{ repo_org_name }}/{{ repo_name }}{% raw %})
[![OpenIssues](http://isitmaintained.com/badge/open/{% endraw %}{{ repo_org_name }}/{{ repo_name }}{% raw %}.svg)](http://isitmaintained.com/project/{% endraw %}{{ repo_org_name }}/{{ repo_name }}{% raw %})
[![OpenIssues](https://isitmaintained.com/badge/open/{% endraw %}{{ repo_org_name }}/{{ repo_name }}{% raw %}.svg)](https://isitmaintained.com/project/{% endraw %}{{ repo_org_name }}/{{ repo_name }}{% raw %})

# Usage
To create a new repository using this template:
Expand Down
10 changes: 6 additions & 4 deletions template/extensions/context.py.jinja-base
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,16 @@ class ContextUpdater(ContextHook):
context["gha_long_timeout_minutes"] = "{{ gha_long_timeout_minutes }}"
context["gha_xlong_timeout_minutes"] = "{{ gha_xlong_timeout_minutes }}"

context["py312_version"] = "{{ py312_version }}"
context["py313_version"] = "{{ py313_version }}"
context["py314_version"] = "{{ py314_version }}"

context["debian_release_name"] = "{{ debian_release_name }}"
context["alpine_image_version"] = "{{ alpine_image_version }}"
context["nginx_image_version"] = "{{ nginx_image_version }}"

context["kiota_cli_version"] = "{{ kiota_cli_version }}"

context["py312_version"] = "{{ py312_version }}"
context["py313_version"] = "{{ py313_version }}"
context["py314_version"] = "{{ py314_version }}"

# Kludge to be able to help symlinked jinja files in the child and grandchild templates
context["template_uses_vuejs"] = {{ "True" if template_uses_vuejs else "False" }}
context["template_uses_javascript"] = {{ "True" if template_uses_javascript else "False" }}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,7 @@ jobs:
uses: ben-z/gh-action-mutex@{% endraw %}{{ gha_mutex }}{% raw %}
with:
branch: mutex-pulumi-${{ inputs.PULUMI_STACK_NAME }}-${{ inputs.ADDITIONAL_MUTEX_SUFFIX }}
timeout-minutes: {% endraw %}{{ gha_long_timeout_minutes }}{% raw %} # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it
timeout-minutes: {% endraw %}{{ gha_long_timeout_minutes }}{% raw %} # this is the amount of time this action will wait to attempt to acquire the mutex lock before failing, e.g. if other jobs are queued up in front of it

- name: Pulumi Initial Destroy to cleanup any leftovers
uses: ./.github/actions/pulumi_ephemeral_deploy
Expand Down