krz/daily-poem
Poetry emailed, at your will.
clone: git clone https://gitbay.org/krz/daily-poem.git
main: .github/workflows/test.yml · raw
1name: 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.
6on:
7 pull_request:
8 push:
9 branches: [main]
10
11permissions:
12 contents: read
13
14jobs:
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