Skip to content

Commit

Permalink
Use the absolute path to constraints.txt (#25)
Browse files Browse the repository at this point in the history
* Use absolute path for constraints argument in GitHub actions

This fixes: Some possibly relevant errors from pip install:
    ERROR: Could not open requirements file: [Errno 2] No such file or directory: '.github/workflows/constraints.txt'
Error installing poetry.
---------

Co-authored-by: bosd <[email protected]>
  • Loading branch information
foarsitter and bosd authored Jul 26, 2024
1 parent d606d88 commit 2a4be4a
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,12 @@ jobs:

- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip install --constraint=${PWD}/.github/workflows/constraints.txt pip
pip --version
- name: Install Poetry
run: |
pip install --constraint=.github/workflows/constraints.txt poetry
pip install --constraint=${PWD}/.github/workflows/constraints.txt poetry
poetry --version
- name: Check if there is a parent commit
Expand Down
16 changes: 8 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ jobs:

- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip install --constraint=${PWD}/.github/workflows/constraints.txt pip
pip --version
- name: Upgrade pip in virtual environments
Expand All @@ -59,13 +59,13 @@ jobs:
- name: Install Poetry
run: |
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
pipx install --pip-args=--constraint=${PWD}/.github/workflows/constraints.txt poetry
poetry --version
- name: Install Nox
run: |
pipx install --pip-args=--constraint=.github/workflows/constraints.txt nox
pipx inject --pip-args=--constraint=.github/workflows/constraints.txt nox nox-poetry
pipx install --pip-args=--constraint=${PWD}/.github/workflows/constraints.txt nox
pipx inject --pip-args=--constraint=${PWD}/.github/workflows/constraints.txt nox nox-poetry
nox --version
- name: Install ghostscript
Expand Down Expand Up @@ -130,18 +130,18 @@ jobs:

- name: Upgrade pip
run: |
pip install --constraint=.github/workflows/constraints.txt pip
pip install --constraint=${PWD}/.github/workflows/constraints.txt pip
pip --version
- name: Install Poetry
run: |
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
pipx install --pip-args=--constraint=${PWD}/.github/workflows/constraints.txt poetry
poetry --version
- name: Install Nox
run: |
pipx install --pip-args=--constraint=.github/workflows/constraints.txt nox
pipx inject --pip-args=--constraint=.github/workflows/constraints.txt nox nox-poetry
pipx install --pip-args=--constraint=${PWD}/.github/workflows/constraints.txt nox
pipx inject --pip-args=--constraint=${PWD}/.github/workflows/constraints.txt nox nox-poetry
nox --version
- name: Download coverage data
Expand Down

0 comments on commit 2a4be4a

Please sign in to comment.