diff --git a/{{cookiecutter.project_name}}/.github/workflows/docs.yml b/{{cookiecutter.project_name}}/.github/workflows/docs.yml index 5aaedf92..3ca3ce46 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/docs.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/docs.yml @@ -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/setup-python@v5.0.0 with: diff --git a/{{cookiecutter.project_name}}/.github/workflows/release.yml b/{{cookiecutter.project_name}}/.github/workflows/release.yml index 67629cba..a3175016 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/release.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/release.yml @@ -24,17 +24,18 @@ jobs: uses: actions/setup-python@v5.0.0 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: | diff --git a/{{cookiecutter.project_name}}/.github/workflows/tests.yml b/{{cookiecutter.project_name}}/.github/workflows/tests.yml index 59fdfa74..ea90f33d 100644 --- a/{{cookiecutter.project_name}}/.github/workflows/tests.yml +++ b/{{cookiecutter.project_name}}/.github/workflows/tests.yml @@ -41,12 +41,12 @@ jobs: uses: actions/setup-python@v5.0.0 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: | @@ -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 @@ -123,23 +124,25 @@ jobs: uses: actions/setup-python@v5.0.0 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: