doc: Add README to PyPI listing #133
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Run `pre-commit` on PRs | |
on: | |
pull_request: | |
branches: [master, qa, dev] | |
push: | |
branches: [master, qa, dev] | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Install poetry | |
run: pipx install poetry | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.8" | |
cache: "poetry" | |
- run: poetry install | |
- uses: pre-commit/[email protected] | |
- uses: pre-commit-ci/[email protected] | |
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) }} |