diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 380ec0c3..25f1d0ac 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -1,11 +1,14 @@ name: Lint -on: push +on: [push, pull_request] jobs: ruff: runs-on: ubuntu-latest + env: + RUFF_OUTPUT_FORMAT: github + steps: - uses: actions/checkout@v4 @@ -13,22 +16,19 @@ jobs: uses: actions/setup-python@v5 with: python-version-file: "pyproject.toml" - cache: "pip" - - name: Install dependencies + - name: Install uv + run: pipx install uv + + - name: Install ruff run: | - python -m pip install --upgrade pip - pip install -r requirements.txt + uv pip install --system --constraint requirements.txt ruff - name: Ruff Formatter run: ruff format --diff . - env: - RUFF_OUTPUT_FORMAT: github - name: Ruff Linter run: ruff check . - env: - RUFF_OUTPUT_FORMAT: github mypy: runs-on: ubuntu-latest @@ -40,12 +40,13 @@ jobs: uses: actions/setup-python@v5 with: python-version-file: "pyproject.toml" - cache: "pip" + + - name: Install uv + run: pipx install uv - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install -r requirements.txt + uv pip install --system --requirement requirements.txt - name: mypy run: mypy . diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 0b2e3601..ab307f4b 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -27,12 +27,13 @@ jobs: uses: actions/setup-python@v5 with: python-version-file: "pyproject.toml" - cache: "pip" + + - name: Install uv + run: pipx install uv - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install -r requirements.txt + uv pip install --system --requirement requirements.txt - name: Load cache uses: actions/cache@v4 diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 226f8040..ccb583eb 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -14,12 +14,13 @@ jobs: uses: actions/setup-python@v5 with: python-version-file: "pyproject.toml" - cache: "pip" + + - name: Install uv + run: pipx install uv - name: Install dependencies run: | - python -m pip install --upgrade pip - pip install -r requirements.txt + uv pip install --system --requirement requirements.txt - name: Load cache uses: actions/cache@v4