Commit f5b2c2d
authored
Give the CI something real to check, and let it start (#1166)
* Replace the committed API key with a placeholder
Both data_folder/secrets.yaml and the example next to it shipped a real-looking
OpenAI key. It is dead and answers 401, but it should never have been in the
repository, and anyone copying the file inherits a broken default instead of a
clear instruction to put their own key there.
Not rewriting history over it. This repository has thousands of forks, a force
push would break every one of them, and the old blob stays reachable by SHA on
GitHub regardless, so a rewrite would buy nothing and cost a lot.
* Give the CI something real to check, and let it start
The workflow had never run a single job. The repository only allowed actions
defined inside itself, so actions/checkout was refused before any job was
created, and every run ended as a startup failure. That setting now allows
GitHub-owned actions and nothing else.
Starting was only half of it. The workflow ran pytest against a repository with
no tests, which exits 5, so it would have gone red the moment it worked. So
there are tests now, and they check the thing that actually breaks for people:
the config files this repository ships have to satisfy the validator this
repository ships, since copying them is the first step of the setup. One of them
refuses a secrets file that holds anything looking like a real key, which is the
regression that was sitting in here until today.
Two of the tests feed the validator a deliberately broken config and require it
to raise, so the suite cannot pass against a validator that accepts anything.
Also pins Python to 3.12 rather than tracking whatever is newest, adds an import
of the app as a smoke check, and declares inquirer, which main.py imports and
which until now arrived only as somebody else's transitive dependency.1 parent 3e5150c commit f5b2c2d
4 files changed
Lines changed: 80 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | | - | |
| 19 | + | |
20 | 20 | | |
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
24 | 27 | | |
25 | | - | |
| 28 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
31 | | - | |
| 31 | + | |
| 32 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
0 commit comments