From 9125b947e39f8732d3db550906d9149e8e18011c Mon Sep 17 00:00:00 2001 From: phil65 Date: Tue, 15 Oct 2024 04:34:44 +0200 Subject: [PATCH] build: use uv --- .github/workflows/build.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index fb4d93b..ed6c4f0 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,15 +22,15 @@ jobs: uses: ts-graphviz/setup-graphviz@v2 - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install hatch - hatch env create + uv sync --all-extras - name: Lint and typecheck run: | - hatch run lint-check + uv run ruff check . + uv run ruff format --check . + uv run mypy mkdocs_mknodes/ - name: Test run: | - hatch run test-cov-xml + uv run pytest --cov-report=xml - uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} @@ -51,6 +51,8 @@ jobs: uses: actions/setup-python@v5 with: python-version: '3.12' + - name: Install uv + uses: yezz123/setup-uv@v4 - name: Install dependencies shell: bash run: |