ci(github): fix uv install
This commit is contained in:
@@ -1,11 +1,13 @@
|
|||||||
name: Python CI
|
name: Python CI
|
||||||
on: [push]
|
on: [ push ]
|
||||||
jobs:
|
jobs:
|
||||||
ruff:
|
ruff:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- uses: astral-sh/ruff-action@v3
|
- uses: astral-sh/ruff-action@v3
|
||||||
|
with:
|
||||||
|
args: "check"
|
||||||
|
|
||||||
ruff-format-check:
|
ruff-format-check:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
@@ -18,7 +20,7 @@ jobs:
|
|||||||
ty:
|
ty:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: python3 -m pip install uv
|
- run: python3 -m pip install uv --break-system-packages
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- run: python3 -m uv sync
|
- run: python3 -m uv sync
|
||||||
- run: python3 -m uv run ty check --output-format github
|
- run: python3 -m uv run ty check --output-format github
|
||||||
@@ -26,7 +28,7 @@ jobs:
|
|||||||
coverage:
|
coverage:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: python3 -m pip install uv
|
- run: python3 -m pip install uv --break-system-packages
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
- run: python3 -m uv sync
|
- run: python3 -m uv sync
|
||||||
- run: python3 -m uv run coverage run -m unittest -v
|
- run: python3 -m uv run coverage run -m unittest -v
|
||||||
@@ -34,4 +36,3 @@ jobs:
|
|||||||
- uses: irongut/CodeCoverageSummary@v1.3.0
|
- uses: irongut/CodeCoverageSummary@v1.3.0
|
||||||
with:
|
with:
|
||||||
filename: coverage.xml
|
filename: coverage.xml
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user