Commit be0a2f1a33
Verified · cmc
Layout: unified · split
.github/workflows/test.yml deleted −38
| @@ -1,38 +0,0 @@ | |||
| 1 | name: Test | ||
| 2 | |||
| 3 | # main.py had never run: it referenced recipient_email where the variable was | ||
| 4 | # recipient_emails, so it raised NameError before sending anything. Nothing | ||
| 5 | # would have caught that — ruff's F821 does, in a second. | ||
| 6 | on: | ||
| 7 | pull_request: | ||
| 8 | push: | ||
| 9 | branches: [main] | ||
| 10 | |||
| 11 | permissions: | ||
| 12 | contents: read | ||
| 13 | |||
| 14 | jobs: | ||
| 15 | test: | ||
| 16 | runs-on: ubuntu-latest | ||
| 17 | steps: | ||
| 18 | - uses: actions/checkout@v7 | ||
| 19 | |||
| 20 | - uses: actions/setup-python@v7 | ||
| 21 | with: | ||
| 22 | python-version: '3.11' | ||
| 23 | |||
| 24 | - name: Install | ||
| 25 | run: pip install -r requirements-dev.txt | ||
| 26 | |||
| 27 | - uses: astral-sh/ruff-action@v3.2.2 | ||
| 28 | with: | ||
| 29 | version: "0.16.4" | ||
| 30 | |||
| 31 | - name: Lint | ||
| 32 | run: ruff check --no-fix | ||
| 33 | |||
| 34 | - name: Format | ||
| 35 | run: ruff format --check | ||
| 36 | |||
| 37 | - name: Tests | ||
| 38 | run: python -m pytest -q | ||