Add rerun workflow API's #25
Workflow file for this run
This file contains hidden or 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: Healthy Pull Request | |
| on: | |
| pull_request: | |
| types: [opened, reopened, ready_for_review, synchronize] | |
| jobs: | |
| test-python: | |
| timeout-minutes: 10 | |
| name: Test / OS ${{ matrix.os }} / Python ${{ matrix.python-version }} | |
| strategy: | |
| matrix: | |
| os: [ubuntu-latest] | |
| python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up Poetry | |
| uses: abatilo/actions-poetry@v3 | |
| with: | |
| poetry-version: 1.8.4 | |
| - name: Install dependencies | |
| run: poetry install | |
| - name: Build distribution | |
| run: poetry build | |
| - name: Add Poetry Python binary to PATH | |
| run: echo "$(poetry env info --path)/bin" >> $GITHUB_PATH | |
| - name: Lint | |
| run: ruff check | |
| - name: Check formatting | |
| run: ruff format --check | |
| - name: Type check | |
| uses: jakebailey/pyright-action@v2 | |
| - name: Test | |
| run: pytest --cov=./ |