|
2 | 2 | # |
3 | 3 | # Boots the Flask app against a throwaway SQLite database, waits for it to |
4 | 4 | # become reachable, and runs the Postman collection at docs/api/postman-collection.json |
5 | | -# via Newman. Uses Poetry because the project is configured with a [tool.poetry] |
6 | | -# pyproject (no PEP 621 [project] table, so `uv sync` cannot resolve dependencies |
7 | | -# here). |
| 5 | +# via Newman. |
| 6 | +# |
| 7 | +# Dependency install uses `pip install -r requirements.txt` rather than the |
| 8 | +# task description's suggested `uv sync` (or Poetry). Two reasons: |
| 9 | +# 1. pyproject.toml is Poetry-only ([tool.poetry], no PEP 621 [project]), |
| 10 | +# so `uv sync` cannot resolve dependencies here. |
| 11 | +# 2. The project's Poetry primary source is Google Artifact Registry |
| 12 | +# (Assured OSS), which requires a GCP service account secret. Using the |
| 13 | +# pre-exported requirements.txt against public PyPI keeps this workflow |
| 14 | +# independent of that secret. |
8 | 15 | # |
9 | 16 | # Required GitHub Actions secrets: |
10 | 17 | # - (none required for the default test run) |
@@ -49,15 +56,10 @@ jobs: |
49 | 56 | with: |
50 | 57 | node-version: "20" |
51 | 58 |
|
52 | | - - name: Install Poetry |
53 | | - run: | |
54 | | - pipx install poetry |
55 | | - poetry --version |
56 | | -
|
57 | 59 | - name: Install Python dependencies |
58 | 60 | run: | |
59 | | - poetry config virtualenvs.in-project true |
60 | | - poetry install --no-interaction --no-root --only main |
| 61 | + python -m pip install --upgrade pip |
| 62 | + pip install -r requirements.txt |
61 | 63 |
|
62 | 64 | - name: Install Newman |
63 | 65 | run: npm install -g newman |
|
72 | 74 | SENTRY_DSN: "" |
73 | 75 | PYTHONPATH: src |
74 | 76 | run: | |
75 | | - poetry run flask --app ledgerbase.wsgi:app run --host 127.0.0.1 --port 5000 \ |
| 77 | + flask --app ledgerbase.wsgi:app run --host 127.0.0.1 --port 5000 \ |
76 | 78 | > flask.log 2>&1 & |
77 | 79 | echo $! > flask.pid |
78 | 80 | echo "Started Flask app with PID $(cat flask.pid)" |
|
0 commit comments