Skip to content

Commit d1417a3

Browse files
can we use setup-python for sdist tests?
1 parent 5b95018 commit d1417a3

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,10 @@ jobs:
5757
image: "ghcr.io/osgeo/gdal:ubuntu-small-3.9.2"
5858

5959
steps:
60-
- name: Install packages
61-
run: |
62-
apt-get update && apt-get install -y build-essential python3-dev
60+
- name: Set up Python
61+
uses: actions/setup-python@v5
62+
with:
63+
python-version: "3.12"
6364

6465
- name: Create virtual environment
6566
# install uv and use it to create a virtual environment, then add it to
@@ -89,9 +90,7 @@ jobs:
8990
- name: Run tests
9091
shell: bash
9192
# virtual environment is automatically activated
92-
run: |
93-
cd ..
94-
uv run python -c "import pyogrio; print(f'GDAL version: {pyogrio.__gdal_version__}\nGEOS version: {pyogrio.__gdal_geos_version__}')"
93+
run: | uv run python -c "import pyogrio; print(f'GDAL version: {pyogrio.__gdal_version__}\nGEOS version: {pyogrio.__gdal_geos_version__}')"
9594
uv run python -m pytest --pyargs pyogrio.tests -v
9695
9796
build-wheels-linux:

0 commit comments

Comments
 (0)