summaryrefslogtreecommitdiff
path: root/.github/workflows
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/build.yml30
1 files changed, 18 insertions, 12 deletions
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 9e957bb..77e7065 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -8,19 +8,25 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
- python-version: ["3.8", "3.12"]
+ python-version:
+ - "3.8"
+ - "3.12"
steps:
- uses: actions/checkout@v4
- - uses: actions/setup-python@v5
+
+ - name: Install uv
+ uses: astral-sh/setup-uv@v5
with:
python-version: ${{ matrix.python-version }}
- - name: Run image
- uses: abatilo/actions-poetry@v2
- - name: Poetry install
- run: poetry install
- - name: Check formatting
- run: poetry run ruff format --check
- - name: Check for lints
- run: poetry run ruff check
- - name: Run unit tests
- run: poetry run pytest
+
+ - name: Install the project
+ run: uv sync --dev
+
+ - name: Run tests
+ run: uv run pytest
+
+ - name: Run ruff check
+ run: uv run ruff check
+
+ - name: Run formatting check
+ run: uv run ruff format --check \ No newline at end of file