Skip to content

Commit 40cf338

Browse files
committed
Updated workflows
1 parent f056924 commit 40cf338

File tree

2 files changed

+21
-17
lines changed

2 files changed

+21
-17
lines changed

.github/workflows/format-code.yml

Lines changed: 11 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,22 @@ jobs:
88
format:
99
runs-on: ubuntu-latest
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@v5
1212
with:
1313
ref: ${{ github.head_ref }}
14-
- uses: actions/[email protected]
14+
- name: "Set up Python"
15+
uses: actions/setup-python@v6
1516
with:
16-
python-version: '^3.11'
17-
- uses: actions/cache@v4
17+
python-version-file: "pyproject.toml"
18+
19+
- name: Install uv
20+
uses: astral-sh/setup-uv@v6
1821
with:
19-
path: |
20-
~/.cache/pypoetry
21-
~/.virtualenvs
22-
key: ${{ runner.os }}-poetry-${{ hashFiles('**/poetry.lock') }}
23-
restore-keys: |
24-
${{ runner.os }}-poetry-
25-
- name: Install Poetry
26-
run: curl -sSL https://install.python-poetry.org | python3 -
22+
enable-cache: true
23+
2724
- name: Install dependencies
28-
run: poetry install --only dev
25+
run: uv sync --only-dev
26+
2927
- name: Run formatting commands
3028
run: make format
3129
- name: Commit changes

.github/workflows/run-tests.yml

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,21 @@ jobs:
1111
runs-on: ubuntu-latest
1212

1313
steps:
14+
1415
- name: Checkout code
15-
uses: actions/checkout@v4
16+
uses: actions/checkout@v5
1617
with:
1718
submodules: recursive
1819

19-
- name: Set up Python and Poetry
20-
uses: abatilo/actions-poetry@v2
20+
- name: "Set up Python"
21+
uses: actions/setup-python@v6
22+
with:
23+
python-version-file: "pyproject.toml"
24+
25+
- name: Install uv
26+
uses: astral-sh/setup-uv@v6
2127
with:
22-
poetry-version: "1.8.2"
28+
enable-cache: true
2329

2430
- name: Install system dependencies (GDAL)
2531
run: |

0 commit comments

Comments
 (0)