Skip to content

Commit

Permalink
ci: use setup-uv action (#679)
Browse files Browse the repository at this point in the history
  • Loading branch information
manzt authored Sep 6, 2024
1 parent 01363f9 commit 0c3b463
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 8 deletions.
15 changes: 9 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ jobs:
# Disable jupyter-builder build hook because not needed for linting/formatting, and requires pnpm
- run: |
sed -i '' 's/\[tool.hatch.build.hooks.\(.*\)\]/\[_tool.hatch.build.hooks.\1\]/' pyproject.toml
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/0.4.3/install.sh | sh
- uses: astral-sh/setup-uv@v2
with:
version: "0.4.6"
- run: |
uv run ruff check
uv run ruff format
Expand All @@ -36,8 +37,9 @@ jobs:
# Disable jupyter-builder build hook because not needed for typechecking, and requires pnpm
- run: |
sed -i '' 's/\[tool.hatch.build.hooks.\(.*\)\]/\[_tool.hatch.build.hooks.\1\]/' pyproject.toml
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/0.4.3/install.sh | sh
- uses: astral-sh/setup-uv@v2
with:
version: "0.4.6"
- run: uv run mypy

TestPython:
Expand All @@ -59,8 +61,9 @@ jobs:
- uses: pnpm/action-setup@v4
with:
run_install: true
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/0.4.3/install.sh | sh
- uses: astral-sh/setup-uv@v2
with:
version: "0.4.6"
- name: Run tests
run: uv run --with pytest-cov pytest ./tests --color=yes --cov anywidget --cov-report xml
- uses: codecov/codecov-action@v4
Expand Down
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ jobs:
- uses: pnpm/action-setup@v4
with:
run_install: true
- name: Set up uv
run: curl -LsSf https://astral.sh/uv/0.4.3/install.sh | sh
- uses: astral-sh/setup-uv@v2
with:
version: "0.4.6"
- name: Create Release Pull Request or Publish
id: changesets
uses: changesets/action@v1
Expand Down

0 comments on commit 0c3b463

Please sign in to comment.