From c84902f670b3e1b01d2b7b84dadd547717240a12 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fabian=20Sch=C3=B6ppach?= Date: Wed, 16 Oct 2024 13:38:59 +0200 Subject: [PATCH] Update github actions --- .github/workflows/actions.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/actions.yml b/.github/workflows/actions.yml index 026bdd4..8bed8df 100644 --- a/.github/workflows/actions.yml +++ b/.github/workflows/actions.yml @@ -18,6 +18,10 @@ jobs: uv pip install --upgrade pip uv pip install '.[dev]' --index-url https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/packages/pypi/simple uv pip install coverage coveralls + env: + # uv pip requires a venv by default + # allows installating packages in the system env + UV_SYSTEM_PYTHON: 1 - name: Test with pytest run: | python -m coverage run -m pytest -sv @@ -43,9 +47,7 @@ jobs: uses: astral-sh/setup-uv@v3 - name: Build the package run: | - uv pip install --upgrade pip - uv pip install build - uv python -m build --sdist + uv build --sdist - name: Install the package run: | uv pip install dist/*.tar.gz --index-url https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/packages/pypi/simple