Skip to content

Run tests on pull requests and before the tag publish; add __version__ - #20

Merged
theodor90 merged 1 commit into
mainfrom
ci/unit-tests
Oct 5, 2026
Merged

theodor90 merged 1 commit into
mainfrom
ci/unit-tests

Conversation

@theodor90

Copy link
Copy Markdown
Owner

There was no CI on pull requests, and publish.yml published on a v* tag without running any tests.

  • New ci.yml (pull requests and main, Python 3.11 and 3.13): install the dev extra, pytest, codegen check.
  • publish.yml: pytest now runs before the build and publish; a failure blocks the publish.
  • Adds form4api.__version__, read from the installed package metadata, so it always equals the pyproject version.

Locally: pytest 64/64; form4api.__version__ == 0.9.0.

There was no CI on pull requests, and publish.yml published on a v* tag
without running any tests. CI now runs pytest and the codegen check on
Python 3.11 and 3.13; the publish workflow runs pytest before building.

Adds form4api.__version__, read from the installed package metadata so it
always equals the pyproject version.
@theodor90
theodor90 merged commit e2f5232 into main Oct 5, 2026
2 checks passed
@theodor90
theodor90 deleted the ci/unit-tests branch October 5, 2026 15:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant