Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add nox and PEP 621 support #61

Open
wants to merge 16 commits into
base: dev
Choose a base branch
from
Open

Add nox and PEP 621 support #61

wants to merge 16 commits into from

Conversation

nebfield
Copy link
Member

@nebfield nebfield commented Feb 3, 2025

Nox is a testing automation framework.

Test sessions are defined in noxfile.py (one per python package):

$ cd pgscatalog.core/
$ nox # run all tests and lint

While doing this I updated pyproject.toml PEP 621 support. Poetry doesn't structure its metadata in a standard way. uv is a very fast project manager that supports PEP 621.

Motivation

  • Tests are now parameterised to run on all supported Python versions automatically (3.10, 3.11, and 3.12)
  • Tool specific configuration files (e.g. pytest) have been deleted and migrated into the standard pyproject.toml file
  • Nox will act as the entrypoint for all GitHub actions which can run tests in parallel (one per python version)

Checklist

  • pgscatalog.core migrate
  • pgscatalog.match migrate
  • pgscatalog.calc migrate
  • pgscatalog.utils migrate
  • pgscatalog.validate migrate
  • Update GitHub action CI
  • Update GitHub action publish

Copy link

codecov bot commented Feb 3, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 90.49%. Comparing base (387a62c) to head (8d87508).
Report is 4 commits behind head on dev.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev      #61      +/-   ##
==========================================
- Coverage   90.49%   90.49%   -0.01%     
==========================================
  Files          59       58       -1     
  Lines        3798     3797       -1     
==========================================
- Hits         3437     3436       -1     
  Misses        361      361              
Flag Coverage Δ
pgscatalog.calc 88.61% <ø> (-0.02%) ⬇️
pgscatalog.core 92.59% <ø> (ø)
pgscatalog.match 89.22% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@nebfield nebfield changed the base branch from main to dev February 4, 2025 11:12
@nebfield nebfield marked this pull request as ready for review February 4, 2025 15:25
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