Skip to content

Commit

Permalink
✨ Update CI and release workflows to use 'uv sync' for dependency ins…
Browse files Browse the repository at this point in the history
…tallation
  • Loading branch information
grelinfo committed Nov 26, 2024
1 parent e25b345 commit e36b0b2
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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

Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e36b0b2

Please sign in to comment.