Bump mypy from 1.18.2 to 1.19.0 in the regular-version-updates group #2024
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: Python Tests for Josepy | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| push: | |
| schedule: | |
| # Run at 4pm UTC or 9am PST | |
| - cron: "0 16 * * *" | |
| permissions: {} # let's not use any permissions we don't need here | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"] | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| allow-prereleases: true | |
| - name: Cache Dependencies | |
| uses: actions/cache@v3 | |
| with: | |
| path: ~/.cache/pypoetry | |
| # Look to see if there is a cache hit for the corresponding lock file | |
| key: ${{ runner.os }}-poetry-${{ hashFiles('poetry.lock') }} | |
| restore-keys: | | |
| ${{ runner.os }}-poetry- | |
| ${{ runner.os }}- | |
| - name: Install Poetry & Tox | |
| run: pip install poetry>1.0.0 tox>3.3.0 | |
| - name: Run tox | |
| run: tox | |
| # This job runs our tests like external parties such as packagers. | |
| external: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v3 | |
| with: | |
| persist-credentials: false | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Install josepy + pytest | |
| run: pip install .[docs] pytest | |
| - name: Run tests | |
| run: pytest tests | |
| notify: | |
| # Only notify about failed builds, do not notify about failed builds for | |
| # PRs, and only notify about failed pushes to main. | |
| if: ${{ failure() && github.event_name != 'pull_request' && (github.event_name != 'push' || github.ref == 'refs/heads/main') }} | |
| needs: [build, external] | |
| runs-on: ubuntu-20.04 | |
| steps: | |
| - name: Write Mattermost Message | |
| run: | | |
| WORKFLOW_RUN_URL="$GITHUB_SERVER_URL/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" | |
| echo "{\"text\":\"** :warning: $GITHUB_REPOSITORY: Build failed :warning: ** | [(see details)]($WORKFLOW_RUN_URL) \"}" > mattermost.json | |
| # we pin this action to a version tested and audited by certbot's | |
| # maintainers for extra security. the full hash is used as doing so is | |
| # recommended by zizmor | |
| - uses: mattermost/action-mattermost-notify@b7d118e440bf2749cd18a4a8c88e7092e696257a | |
| env: | |
| MATTERMOST_WEBHOOK_URL: ${{ secrets.MATTERMOST_WEBHOOK_URL }} |