Something went wrong. Try again.
A simple, elegant counter with support for counting multiple things at once.
Something went wrong. Try again.
1.0 kB · 42 lines
YAML
at main
12345678910111213141516171819202122232425262728293031323334353637383940414243name: Run `pre-commit` on PRs
on: pull_request: branches: [main, qa, dev] push: branches: [main, qa, dev]
jobs: main: runs-on: ubuntu-latest
strategy: matrix: python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
steps: - uses: actions/checkout@v3 - name: Install poetry run: pipx install poetry - uses: actions/setup-python@v4 with: python-version: ${{ matrix.python-version }} cache: "poetry" - run: poetry install - uses: pre-commit/action@v3.0.0 - uses: pre-commit-ci/lite-action@v1.0.1 if: always()
# Remove the maintenance burden for required status checks. # https://github.com/marketplace/actions/alls-green#why all-green: if: always() needs: - main
runs-on: ubuntu-latest steps: - name: Ensure all other jobs pass successfully. uses: re-actors/alls-green@release/v1 with: jobs: ${{ toJSON(needs) }}