Migrate package to hatch - #166
Merged
Merged
Conversation
for more information, see https://pre-commit.ci
Comment on lines
+12
to
+18
| 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 |
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #166 +/- ##
==========================================
- Coverage 65.23% 0.00% -65.24%
==========================================
Files 8 8
Lines 1717 1730 +13
Branches 310 0 -310
==========================================
- Hits 1120 0 -1120
- Misses 465 1730 +1265
+ Partials 132 0 -132
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:
|
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.