From e36b0b295a83ca14c849d657a8dd5260cc3095d9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Gremaud?= Date: Tue, 26 Nov 2024 07:10:51 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20Update=20CI=20and=20release=20workf?= =?UTF-8?q?lows=20to=20use=20'uv=20sync'=20for=20dependency=20installation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/ci.yml | 10 ++++++++-- .github/workflows/release.yml | 6 +++++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 40e3ea0..f66c186 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: uses: astral-sh/setup-uv@v3 - name: Install dependencies - run: uv install --all-extras + run: uv sync --all-extras - name: Run pre-commit uses: pre-commit/action@v3.0.1 @@ -42,7 +42,7 @@ jobs: uses: astral-sh/setup-uv@v3 - name: Install dependencies - run: uv install --all-extras --python ${{ matrix.python }} + run: uv sync --all-extras --python ${{ matrix.python }} - name: Test with pytest run: uv run pytest @@ -65,6 +65,12 @@ jobs: with: name: coverage-reports + - name: Install uv + uses: astral-sh/setup-uv@v3 + + - name: Install dependencies + run: uv sync --all-extras + - name: Combine reports run: coverage combine cov-*.xml --data-file cov.xml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 428628b..089db27 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -25,7 +25,11 @@ jobs: - name: Install uv uses: astral-sh/setup-uv@v3 - - run: uv run --group docs mkdocs gh-deploy --force + - name: Install dependencies + run: uv sync --group docs + + - name: Deploy docs on GitHub Pages + run: uv run mkdocs gh-deploy --force publish-pypi: needs: publish-docs