Skip to content

Commit 864d021

Browse files
authored
SEP-1001: Fix Coverage (main) workflow by setting POETRY env var (#552)
Add a workflow-level `env: POETRY: poetry` declaration to `.github/workflows/coverage-main.yml`, mirroring `.github/workflows/python.yaml` (lines 13-14). The `Coverage (main)` workflow has been failing on every push to `main` because `make test` exits with code 127 — without the `POETRY` env var, the `Makefile`'s `ifdef POETRY` branch is skipped and `VENV` falls through to its default value, so `${VENV_BIN}/pytest` resolves to a non-existent path. With the env var set, `VENV` is resolved via `poetry env info --path`, pointing at the Poetry-managed virtualenv that `poetry install --with syncmysql` populates.
1 parent acc5bac commit 864d021

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/coverage-main.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ on:
1313
permissions:
1414
contents: read
1515

16+
env:
17+
POETRY: poetry
18+
1619
jobs:
1720
store-coverage:
1821
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)