Skip to content

Commit dfc12bf

Browse files
committed
fix: replace poetry action(not support 2.0)
1 parent 6c55ba4 commit dfc12bf

File tree

3 files changed

+18
-3
lines changed

3 files changed

+18
-3
lines changed

.github/workflows/build_docs.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@ jobs:
2626
uses: olegtarasov/[email protected]
2727
- name: Install pandoc
2828
run: sudo apt-get install -y pandoc
29+
- name: Install the latest version of uv
30+
uses: astral-sh/setup-uv@v5
31+
with:
32+
version: "latest"
2933
- name: Install Poetry
30-
uses: snok/install-poetry@v1
34+
run: |
35+
uv tool install poetry
3136
- name: Install package and test dependencies
3237
run: |
3338
poetry install --with dev,nbtools

.github/workflows/format_and_lint.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,13 @@ jobs:
1717
uses: actions/setup-python@v3
1818
with:
1919
python-version: "3.9"
20+
- name: Install the latest version of uv
21+
uses: astral-sh/setup-uv@v5
22+
with:
23+
version: "latest"
2024
- name: Install Poetry
21-
uses: snok/install-poetry@v1
25+
run: |
26+
uv tool install poetry
2227
- name: Install dependencies
2328
run: |
2429
poetry install --with dev

.github/workflows/run_tests.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,13 @@ jobs:
2626
uses: actions/setup-python@v3
2727
with:
2828
python-version: ${{ matrix.python-version }}
29+
- name: Install the latest version of uv
30+
uses: astral-sh/setup-uv@v5
31+
with:
32+
version: "latest"
2933
- name: Install Poetry
30-
uses: snok/install-poetry@v1
34+
run: |
35+
uv tool install poetry
3136
- name: Install test dependencies
3237
run: |
3338
poetry add "numpy${{ matrix.numpy-version }}"

0 commit comments

Comments
 (0)