Fail add_to_pydotorg on release-file create failures (#403) #1080
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: Lint | |
| on: [push, pull_request, workflow_dispatch] | |
| permissions: {} | |
| env: | |
| FORCE_COLOR: 1 | |
| RUFF_OUTPUT_FORMAT: github | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| persist-credentials: false | |
| - uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: "3.x" | |
| cache: pip | |
| - uses: j178/prek-action@bdca6f102f98e2b4c7029491a53dfd366469e33d # v2.0.4 | |
| - name: Install dependencies | |
| run: | | |
| python3 -m pip install -U pip | |
| python3 -m pip install -U tox | |
| - name: Mypy | |
| run: tox -e mypy | |
| - name: Run PSScriptAnalyzer on PowerShell scripts | |
| shell: pwsh | |
| run: | | |
| Invoke-ScriptAnalyzer -Path . -Recurse -Severity ParseError,Error -EnableExit |