diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 01859fc..6de32b1 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -1,4 +1,4 @@ -name: Python application +name: Run Python Tests and Pre-Commit Hooks on: push: @@ -8,24 +8,26 @@ on: branches: - main jobs: - build: + tests: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Set up Python 3.10 - uses: actions/setup-python@v2 + uses: actions/setup-python@v5 with: python-version: '3.10' - - name: Install dependencies - run: | - python -m pip install --upgrade pip - pip install pre-commit - pip install -e .[dev] + - name: Install uv + uses: astral-sh/setup-uv@v3 + with: + version: "0.4.15" + + - name: Install project + run: uv sync --all-extras --dev - name: Run pre-commit hooks - run: pre-commit run --all-files + run: uvx --with pre-commit pre-commit run --all-files - name: Run tests run: |