Skip to content

Commit

Permalink
[MISC] Fix poetry 2.0 crashing the workflows (poetry issue #9961)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aedial committed Jan 9, 2025
1 parent 53778f0 commit 44ea1d0
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8, 3.9, "3.10", 3.11, 3.12]
python-version: [3.8, 3.9, "3.10", 3.11, 3.12]

steps:
- uses: actions/checkout@v3
Expand All @@ -31,7 +31,7 @@ jobs:
cache: 'pip'
- name: Install dependencies
run: |
pip install poetry
pip install poetry==1.8.5
poetry install
- name: Test
run: |
Expand All @@ -54,10 +54,10 @@ jobs:
cache: 'pip'
- name: Install dependencies
run: |
pip install poetry
pip install poetry==1.8.5
poetry install
- name: Test
run: |
poetry install
poetry run nai-test-api
env:
NAI_USERNAME: ${{ secrets.NAI_USERNAME }}
Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/sphinx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,12 @@ jobs:
with:
python-version: "3.10"

- run: pip install poetry
- name: Build HTML
- name: Install dependencies
run: |
pip install poetry==1.8.5
poetry install
- name: Build HTML
run: |
poetry run nai-build-docs
- name: Deploy on Github Pages
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ tokenizers = "^0.15.1"
ftfy = "^6.1.3"
regex = "^2023.12.25"
sentencepiece = "^0.2.0"
poetry = "^1.7.1"
poetry = "^1.8.5"
msgpackr-python = "^0.1.2"
pillow = "^10.4.0"

Expand Down

0 comments on commit 44ea1d0

Please sign in to comment.