Skip to content

Commit

Permalink
fix ci (#414)
Browse files Browse the repository at this point in the history
* update workflow build dependency constraints

* call "poetry lock --no-update"

* upgrade to actions/checkout@v4 and to actions/setup-python@v5

* add --verbose to pipx install

* try: pipx install poetry

* show pwd and ls

* use absolute paths for --pip-args=--constraint=

* use pwd

* use pwd more
  • Loading branch information
ArneBinder authored Apr 17, 2024
1 parent e72a65e commit 0b7100d
Show file tree
Hide file tree
Showing 3 changed files with 60 additions and 12 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
pip==23.2.1
nox==2023.4.22
pip==24.0
nox==2024.4.15
nox-poetry==1.0.3
poetry==1.6.1
virtualenv==20.24.4
poetry==1.8.2
virtualenv==20.25.2
17 changes: 9 additions & 8 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ jobs:

steps:
- name: Check out the repository
uses: actions/checkout@v2.4.0
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v2.3.2
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python }}
# cache: pip
Expand All @@ -53,12 +53,13 @@ jobs:
print(f"VIRTUALENV_PIP={pip.__version__}", file=io)
- name: Install Poetry
run: |
pipx install --pip-args=--constraint=.github/workflows/constraints.txt poetry
# pwd output: /home/runner/work/pytorch-ie/pytorch-ie
pipx install --verbose --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: Compute pre-commit cache key
if: matrix.session == 'pre-commit'
Expand Down Expand Up @@ -115,12 +116,12 @@ jobs:
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
uses: actions/[email protected]
Expand Down
47 changes: 47 additions & 0 deletions poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 0b7100d

Please sign in to comment.