From d4cf0fe06c29ebc48f6391fb210011552153f7c3 Mon Sep 17 00:00:00 2001 From: Roar Skinderviken Date: Sat, 27 Apr 2024 13:35:44 +0200 Subject: [PATCH] Fixed path issue: https://github.com/cjolowicz/cookiecutter-hypermodern-python/issues/1383 --- .github/workflows/docs.yml | 2 +- .github/workflows/release.yml | 4 ++-- .github/workflows/tests.yml | 16 ++++++++-------- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 8db85e7..ee2e5d6 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -30,7 +30,7 @@ jobs: - name: Install Poetry run: | - pipx install --pip-args "-c .github/workflows/constraints.txt" poetry + pipx install --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" poetry poetry --version - name: Set up Python diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 3bd5385..7faa5d4 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,12 +27,12 @@ jobs: - name: Upgrade pip run: | - pip install -c .github/workflows/constraints.txt pip + pip install -c ${{ github.workspace }}/.github/workflows/constraints.txt pip pip --version - name: Install Poetry run: | - pip install -c .github/workflows/constraints.txt poetry + pip install -c ${{ github.workspace }}/.github/workflows/constraints.txt poetry poetry --version - name: Check if there is a parent commit diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a607b8c..7dd07f7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -44,7 +44,7 @@ jobs: - name: Upgrade pip run: | - pip install -c .github/workflows/constraints.txt pip + pip install -c ${{ github.workspace }}/.github/workflows/constraints.txt pip pip --version - name: Upgrade pip in virtual environments @@ -58,13 +58,13 @@ jobs: - name: Install Poetry run: | - pipx install --pip-args "-c .github/workflows/constraints.txt" poetry + pipx install --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" poetry poetry --version - name: Install Nox run: | - pipx install --pip-args "-c .github/workflows/constraints.txt" nox - pipx inject --pip-args "-c .github/workflows/constraints.txt" nox nox-poetry + 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 - name: Compute pre-commit cache key @@ -126,18 +126,18 @@ jobs: - name: Upgrade pip run: | - pip install -c .github/workflows/constraints.txt pip + pip install -c ${{ github.workspace }}/.github/workflows/constraints.txt pip pip --version - name: Install Poetry run: | - pipx install --pip-args "-c .github/workflows/constraints.txt" poetry + pipx install --pip-args "-c ${{ github.workspace }}/.github/workflows/constraints.txt" poetry poetry --version - name: Install Nox run: | - pipx install --pip-args "-c .github/workflows/constraints.txt" nox - pipx inject --pip-args "-c .github/workflows/constraints.txt" nox nox-poetry + 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 - name: Download coverage data