Migrate to hatch for packaging - #45
Merged
Merged
Conversation
for more information, see https://pre-commit.ci
Comment on lines
+10
to
+16
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.12' | ||
| - uses: pre-commit/action@v3.0.1 |
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: '3.12' | ||
| - uses: pre-commit/action@v3.0.1 |
Comment on lines
+9
to
+34
| name: Build and Test | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| id-token: write | ||
| repository-projects: write | ||
| contents: write | ||
| pages: write | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v7 | ||
|
|
||
| - name: Set up Python 3.12 | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: 3.12 | ||
|
|
||
| - name: Install dependencies | ||
| run: | | ||
| python -m pip install --upgrade pip | ||
| pip install tox | ||
| - name: Install tox | ||
| run: python -m pip install tox | ||
|
|
||
| - name: Test with tox | ||
| run: | | ||
| tox | ||
| - name: Test | ||
| run: tox -e default | ||
|
|
||
| - name: Build Project and Publish | ||
| run: | | ||
| python -m tox -e clean,build | ||
| - name: Build Project | ||
| run: tox -e build | ||
|
|
||
| # This uses the trusted publisher workflow so no token is required. | ||
| - name: Publish to PyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 | ||
| - name: Store the distribution packages | ||
| uses: actions/upload-artifact@v4 | ||
| with: | ||
| name: python-package-distributions | ||
| path: dist/ | ||
|
|
||
| build-docs: |
Comment on lines
+35
to
+59
| name: Build Documentation | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v7 | ||
|
|
||
| - name: Set up Python 3.12 | ||
| uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: 3.12 | ||
|
|
||
| - name: Install tox | ||
| run: python -m pip install tox | ||
|
|
||
| - name: Build docs | ||
| run: | | ||
| tox -e docs | ||
| run: tox -e docs | ||
|
|
||
| - run: touch ./docs/_build/html/.nojekyll | ||
| - name: Add .nojekyll | ||
| run: touch ./docs/_build/html/.nojekyll | ||
|
|
||
| - name: GH Pages Deployment | ||
| uses: JamesIves/github-pages-deploy-action@v4 | ||
| - name: Upload Pages artifact | ||
| uses: actions/upload-pages-artifact@v5 | ||
| with: | ||
| branch: gh-pages # The branch the action should deploy to. | ||
| folder: ./docs/_build/html | ||
| clean: true # Automatically remove deleted files from the deploy branch | ||
| path: ./docs/_build/html | ||
|
|
||
| publish-pypi: |
| path: dist/ | ||
|
|
||
| - name: Publish package to PyPI | ||
| uses: pypa/gh-action-pypi-publish@release/v1 |
|
|
||
| - name: Upload coverage reports to Codecov with GitHub Action | ||
| uses: codecov/codecov-action@v5 | ||
| uses: codecov/codecov-action@v7 |
for more information, see https://pre-commit.ci
…into update-hatchit
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #45 +/- ##
==========================================
- Coverage 91.27% 0.00% -91.28%
==========================================
Files 45 46 +1
Lines 1982 2036 +54
Branches 416 0 -416
==========================================
- Hits 1809 0 -1809
- Misses 117 2036 +1919
+ Partials 56 0 -56
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
jkanche
marked this pull request as ready for review
September 1, 2026 13:12
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.