summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuval Adam <_@yuv.al>2025-05-01 21:40:04 +0200
committerYuval Adam <_@yuv.al>2025-05-01 21:40:04 +0200
commitd29624f18d4484c6a0ad8704f43ce88191b968f8 (patch)
tree8b6bdf7442c775fa1e4115fe0ce4d2a647abbddb
parentb432745b96cc379ae6465851a283f54cf6e2f421 (diff)
Update CI and add ruff
-rw-r--r--.github/workflows/build.yml30
-rw-r--r--pyproject.toml1
2 files changed, 19 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
diff --git a/pyproject.toml b/pyproject.toml
index 41a32d3..2b71bc5 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -11,4 +11,5 @@ dependencies = []
[dependency-groups]
dev = [
"pytest>=8.3.5",
+ "ruff>=0.11.8",
]