diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 224bcfa..1192cba 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -11,14 +11,11 @@ jobs: timeout-minutes: 10 steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: astral-sh/setup-uv@v5 with: python-version: "3.11" - cache: pip - - name: Install build tools - run: pip install build - name: Build package - run: python -m build + run: uv build - name: Upload artifacts uses: actions/upload-artifact@v4 with: diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 0b02ad2..be1055b 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -11,11 +11,10 @@ jobs: timeout-minutes: 5 steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: astral-sh/setup-uv@v5 with: python-version: "3.11" - cache: pip - - name: Install ruff - run: pip install ruff + - name: Install dependencies + run: uv sync --dev - name: Run ruff - run: ruff check . + run: uv run ruff check . diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index e828a54..72bd6df 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,14 +14,10 @@ jobs: python-version: ["3.11", "3.12"] steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + - uses: astral-sh/setup-uv@v5 with: python-version: ${{ matrix.python-version }} - cache: pip - name: Install dependencies - run: | - python -m pip install --upgrade pip - python -m pip install -e ".[dev]" - python -m pip install pytest-timeout + run: uv sync --dev - name: Run pytest - run: pytest -v --timeout=30 + run: uv run pytest -v --timeout=30 diff --git a/pyproject.toml b/pyproject.toml index 696fff3..c993fab 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -42,6 +42,7 @@ dependencies = [ dev = [ "pytest>=8.0", "pytest-cov>=5.0", + "pytest-timeout>=2.4", "ruff>=0.5", "build>=1.0", ]