diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7bac4a1..b05873a 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,10 +23,24 @@ jobs: - name: Run tests run: scripts/test + lint: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Install uv + uses: astral-sh/setup-uv@v4 + # run: uv add ruff + + - name: ruff check + run: uv run --with ruff ruff check bson/ + # https://github.com/marketplace/actions/alls-green#why used for branch protection checks check: if: always() - needs: [test] + needs: [test, lint] +# - test +# - lint runs-on: ubuntu-latest steps: - name: Decide whether the needed jobs succeeded or failed