Fix the install step of the Gitea workflow #36

Merged
Tirsvad merged 1 commits from fix-ci-install-step into main 2026-10-07 19:17:03 +02:00
Owner

Fix the install step of the Gitea workflow

The workflow added in #35 installs with pip install --group dev, which needs a [dependency-groups] table. This project declares the development tools as the dev extra in pyproject.toml, so the step fails with ERROR: [dependency-groups] table was missing from 'pyproject.toml'. Cannot resolve '--group' option.

Change

.gitea/workflows/ci.yml is rewritten as a shorter file. The fix is the install step, which now runs python -m pip install -e ".[dev]", the command the README documents. The rewrite also changes these things:

  • The header comment is gone. It explained why the file lives in .gitea/workflows: GitHub refuses pushes that touch .github/workflows from a token without the workflow scope, which stopped the push mirror.
  • permissions: contents: read is gone.
  • The checkout and Python set-up steps lose their names, and the lint, format and type steps are renamed.
  • The tests run first, then lint, formatting and types.
  • The tools run through python -m (ruff, mypy), and mypy no longer gets --strict on the command line; strict mode is set in pyproject.toml.

Verification

  • The error was reproduced locally with pip install --group dev against this pyproject.toml.
  • The steps of the new file, exactly as written, pass locally: python -m pytest (95 passed), python -m ruff check src tests, python -m ruff format --check src tests and python -m mypy src tests.
  • CI runs on this pull request.

For the reviewer

Two things the rewrite dropped may not be intended: the header note about why the file is in .gitea/workflows, and permissions: contents: read. Also unchanged from #35: the workflow has no Doxygen step, while the README's "Continuous integration" section and RC-018 (success criterion 4) still say CI builds the documentation, and on: push: has no branch filter, so a pull request branch runs twice for each push.

## Fix the install step of the Gitea workflow The workflow added in #35 installs with `pip install --group dev`, which needs a `[dependency-groups]` table. This project declares the development tools as the `dev` extra in `pyproject.toml`, so the step fails with `ERROR: [dependency-groups] table was missing from 'pyproject.toml'. Cannot resolve '--group' option.` ### Change `.gitea/workflows/ci.yml` is rewritten as a shorter file. The fix is the install step, which now runs `python -m pip install -e ".[dev]"`, the command the README documents. The rewrite also changes these things: - The header comment is gone. It explained why the file lives in `.gitea/workflows`: GitHub refuses pushes that touch `.github/workflows` from a token without the workflow scope, which stopped the push mirror. - `permissions: contents: read` is gone. - The checkout and Python set-up steps lose their names, and the lint, format and type steps are renamed. - The tests run first, then lint, formatting and types. - The tools run through `python -m` (`ruff`, `mypy`), and `mypy` no longer gets `--strict` on the command line; strict mode is set in `pyproject.toml`. ### Verification - The error was reproduced locally with `pip install --group dev` against this `pyproject.toml`. - The steps of the new file, exactly as written, pass locally: `python -m pytest` (95 passed), `python -m ruff check src tests`, `python -m ruff format --check src tests` and `python -m mypy src tests`. - CI runs on this pull request. ### For the reviewer Two things the rewrite dropped may not be intended: the header note about why the file is in `.gitea/workflows`, and `permissions: contents: read`. Also unchanged from #35: the workflow has no Doxygen step, while the README's "Continuous integration" section and `RC-018` (success criterion 4) still say CI builds the documentation, and `on: push:` has no branch filter, so a pull request branch runs twice for each push.
Tirsvad added 1 commit 2026-10-07 19:14:44 +02:00
Fix the install step of the Gitea workflow
CI / checks (push) Successful in 45s
CI / checks (pull_request) Successful in 48s
99c721003e
The step ran pip install --group dev, which needs a dependency-groups table in
pyproject.toml. This project declares the development tools as the dev extra, so the
step failed with "[dependency-groups] table was missing". It now installs with
pip install -e ".[dev]", the command the README documents.
Tirsvad merged commit 7d2c9e3d08 into main 2026-10-07 19:17:03 +02:00
Tirsvad deleted branch fix-ci-install-step 2026-10-07 19:17:15 +02:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: Tirsvad-Udemy-100-days-of-code/018-turtle#36