From 1684bdef6ceeccbfdc150aec3d55cec5a678018a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Edgar=20Ram=C3=ADrez-Mondrag=C3=B3n?= <edgarrm358@gmail.com> Date: Thu, 4 Apr 2024 11:12:55 -0600 Subject: [PATCH] ci: Qualify constraints file with workspace directory --- .github/workflows/cookiecutter-e2e.yml | 6 +++--- .github/workflows/test.yml | 20 +++++++++++--------- 2 files changed, 14 insertions(+), 12 deletions(-) diff --git a/.github/workflows/cookiecutter-e2e.yml b/.github/workflows/cookiecutter-e2e.yml index 025406eb5..051d21d95 100644 --- a/.github/workflows/cookiecutter-e2e.yml +++ b/.github/workflows/cookiecutter-e2e.yml @@ -36,14 +36,14 @@ jobs: - uses: actions/checkout@v4 - name: Upgrade pip env: - PIP_CONSTRAINT: .github/workflows/constraints.txt + PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt run: | pip install pip pip --version - name: Install Poetry env: - PIP_CONSTRAINT: .github/workflows/constraints.txt + PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt run: | pipx install poetry pipx inject poetry poetry-plugin-export @@ -64,7 +64,7 @@ jobs: - name: Install Nox env: - PIP_CONSTRAINT: .github/workflows/constraints.txt + PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt run: | pipx install nox pipx inject nox nox-poetry diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 710a72171..3b7d51287 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -62,7 +62,7 @@ jobs: - name: Install Poetry env: - PIP_CONSTRAINT: .github/workflows/constraints.txt + PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt run: | pipx install poetry pipx inject poetry poetry-plugin-export @@ -79,14 +79,14 @@ jobs: - name: Upgrade pip env: - PIP_CONSTRAINT: .github/workflows/constraints.txt + PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt run: | pip install pip pip --version - name: Install Nox env: - PIP_CONSTRAINT: .github/workflows/constraints.txt + PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt run: | pipx install nox pipx inject nox nox-poetry @@ -126,7 +126,7 @@ jobs: - name: Install Poetry env: - PIP_CONSTRAINT: .github/workflows/constraints.txt + PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt run: | pipx install poetry pipx inject poetry poetry-plugin-export @@ -143,14 +143,14 @@ jobs: - name: Upgrade pip env: - PIP_CONSTRAINT: .github/workflows/constraints.txt + PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt run: | pip install pip pip --version - name: Install Nox env: - PIP_CONSTRAINT: .github/workflows/constraints.txt + PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt run: | pipx install nox pipx inject nox nox-poetry @@ -171,7 +171,7 @@ jobs: - name: Install Poetry env: - PIP_CONSTRAINT: .github/workflows/constraints.txt + PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt run: | pipx install poetry pipx inject poetry poetry-plugin-export @@ -185,8 +185,10 @@ jobs: cache-dependency-path: 'poetry.lock' - name: Upgrade pip + env: + PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt run: | - pip install --constraint=.github/workflows/constraints.txt pip + pip install pip pip --version - uses: actions/download-artifact@v4 @@ -196,7 +198,7 @@ jobs: - name: Install Nox env: - PIP_CONSTRAINT: .github/workflows/constraints.txt + PIP_CONSTRAINT: ${{ github.workspace }}/.github/workflows/constraints.txt run: | pipx install nox pipx inject nox nox-poetry