From 47420ac7278eea60a62d300fa1be76c68e4dc7cc Mon Sep 17 00:00:00 2001 From: JosePizarro3 Date: Thu, 6 Jun 2024 14:23:51 +0200 Subject: [PATCH] Added uv to pip install in pipeline --- .github/workflows/actions.yaml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/actions.yaml b/.github/workflows/actions.yaml index 83efb9a0..8fc223ba 100644 --- a/.github/workflows/actions.yaml +++ b/.github/workflows/actions.yaml @@ -27,7 +27,7 @@ jobs: python -m mypy --ignore-missing-imports --follow-imports=silent --no-strict-optional src/nomad_simulations tests - name: Build coverage file run: | - pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=src tests/ | tee pytest-coverage.txt + pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=src tests | tee pytest-coverage.txt - name: Pytest coverage comment uses: MishaKav/pytest-coverage-comment@main with: @@ -43,12 +43,13 @@ jobs: python-version: 3.9 - name: Build the package run: | - pip install --upgrade pip - pip install build + pip install uv + uv pip install --upgrade pip --system + uv pip install build --system python -m build --sdist - name: Install the package run: | - pip install dist/*.tar.gz --index-url https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/packages/pypi/simple + uv pip install dist/*.tar.gz --index-url https://gitlab.mpcdf.mpg.de/api/v4/projects/2187/packages/pypi/simple --system ruff-linting: runs-on: ubuntu-latest steps: