Skip to content

Commit dfbe1b3

Browse files
committed
fix: adjust some jinja escaping to properly work in github action workflows
1 parent 5718ac5 commit dfbe1b3

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

{{cookiecutter.project_name}}/.github/workflows/test-python.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ on:
2828

2929
jobs:
3030
test-python:
31-
name: Run Python Tests on {% raw %}${{ matrix.os }}/{{"{{"}} matrix.python-version{{"}}"}} {% endraw %}
32-
runs-on: {% raw %}${{ matrix.os }}{% endraw %}
31+
name: Run Python Tests on {{"${{ matrix.os }}/${{ matrix.python-version }}"}}
32+
runs-on: {{"${{ matrix.os }}"}}
3333
strategy:
3434
matrix:
3535
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
@@ -45,21 +45,21 @@ jobs:
4545
- name: Set up Python
4646
uses: actions/setup-python@v5
4747
with:
48-
python-version: {% raw %}${{ matrix.python-version }}{% endraw %}
48+
python-version: {{"${{ matrix.python-version }}"}}
4949

5050
- name: Run test suite
5151
run: uvx nox -s test-python
5252

5353
- name: Upload test reports
5454
uses: actions/upload-artifact@v4
5555
with:
56-
name: test-results-{% raw %}${{ matrix.os }}{% endraw %}-py{% raw %}${{ matrix.python-version }}{% endraw %}
56+
name: {{"test-results-${{ matrix.os }}-py${{ matrix.python-version }}"}}
5757
path: test-results/*.xml
5858
retention-days: 5
5959

6060
- name: Upload coverage report
6161
uses: actions/upload-artifact@v4
6262
with:
63-
name: coverage-report-{% raw %}${{ matrix.os }}{% endraw %}-py{% raw %}${{ matrix.python-version }}{% endraw %}
63+
name: {{"coverage-report-${{ matrix.os }}-py${{ matrix.python-version }}"}}
6464
path: coverage.xml
6565
retention-days: 5

{{cookiecutter.project_name}}/.github/workflows/typecheck-python.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ on:
3030

3131
jobs:
3232
typecheck-python:
33-
name: Run Python Type Checks on {% raw %}${{ matrix.os }}/{{"{{"}} matrix.python-version{{"}}"}} {% endraw %}
34-
runs-on: {% raw %}${{ matrix.os }}{% endraw %}
33+
name: Run Python Type Checks on {{"${{ matrix.os }}/${{ matrix.python-version }}"}}
34+
runs-on: {{"${{ matrix.os }}"}}
3535
strategy:
3636
matrix:
3737
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
@@ -47,7 +47,7 @@ jobs:
4747
- name: Set up Python
4848
uses: actions/setup-python@v5
4949
with:
50-
python-version: {% raw %}${{ matrix.python-version }}{% endraw %}
50+
python-version: {{"${{ matrix.python-version }}"}}
5151

5252
- name: Run Python type checking
5353
run: uvx nox -s typecheck-python

0 commit comments

Comments
 (0)