Skip to content

Commit

Permalink
Add 'raw' tags to avoid Cookiecutter interpreting tags
Browse files Browse the repository at this point in the history
  • Loading branch information
mallport committed Apr 4, 2024
1 parent c02dde9 commit 1129854
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 13 deletions.
4 changes: 3 additions & 1 deletion {{cookiecutter.project_name}}/.github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,12 @@ jobs:
steps:
- name: Check out the repository
uses: actions/checkout@v4
{% raw %}
- name: Install Poetry
run: |
pipx install --pip-args "-c '${{ github.workspace }}'/.github/workflows/constraints.txt" poetry
pipx install --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" poetry
poetry --version
{% endraw %}
- name: Set up Python
uses: actions/[email protected]
with:
Expand Down
7 changes: 4 additions & 3 deletions {{cookiecutter.project_name}}/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,17 +24,18 @@ jobs:
uses: actions/[email protected]
with:
python-version: "3.12"

{% raw %}
- name: Upgrade pip
run: |
pip install -c ${{ github.workspace }}/.github/workflows/constraints.txt pip
pip --version
{% endraw %}
{% raw %}
- name: Install Poetry
run: |
pip install -c ${{ github.workspace }}/.github/workflows/constraints.txt poetry
poetry --version
{% endraw %}
- name: Check if there is a parent commit
id: check-parent-commit
run: |
Expand Down
21 changes: 12 additions & 9 deletions {{cookiecutter.project_name}}/.github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,12 @@ jobs:
uses: actions/[email protected]
with:
python-version: ${{"{{"}} matrix.python {{"}}"}}

{% raw %}
- name: Upgrade pip
run: |
pip install -c ${{ github.workspace }}/.github/workflows/constraints.txt pip
pip --version
{% endraw %}
- name: Upgrade pip in virtual environments
shell: python
run: |
Expand All @@ -55,18 +55,19 @@ jobs:
with open(os.environ["GITHUB_ENV"], mode="a") as io:
print(f"VIRTUALENV_PIP={pip.__version__}", file=io)
{% raw %}
- name: Install Poetry
run: |
pipx install --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" poetry
poetry --version
{% endraw %}
{% raw %}
- name: Install Nox
run: |
pipx install --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" nox
pipx inject --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" nox nox-poetry
nox --version
{% endraw %}
- name: Compute pre-commit cache key
if: matrix.session == 'pre-commit'
id: pre-commit-cache
Expand Down Expand Up @@ -123,23 +124,25 @@ jobs:
uses: actions/[email protected]
with:
python-version: "3.12"

{% raw %}
- name: Upgrade pip
run: |
pip install -c ${{ github.workspace }}/.github/workflows/constraints.txt pip
pip --version
{% endraw %}
{% raw %}
- name: Install Poetry
run: |
pipx install --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" poetry
poetry --version
{% endraw %}
{% raw %}
- name: Install Nox
run: |
pipx install --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" nox
pipx inject --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" nox nox-poetry
nox --version
{% endraw %}
- name: Download coverage data
uses: actions/download-artifact@v4
with:
Expand Down

0 comments on commit 1129854

Please sign in to comment.