Skip to content

Migrate package to hatch - #7

Merged
jkanche merged 5 commits into
masterfrom
update-hatchit
Sep 16, 2026
Merged

jkanche merged 5 commits into
masterfrom
update-hatchit

Conversation

@jkanche

@jkanche jkanche commented Sep 16, 2026

Copy link
Copy Markdown
Member

No description provided.

@jkanche jkanche self-assigned this Sep 16, 2026
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
@codecov

codecov Bot commented Sep 16, 2026

Copy link
Copy Markdown

Welcome to Codecov 🎉

Once you merge this PR into your default branch, you're all set! Codecov will compare coverage reports and display results in all future pull requests.

Thanks for integrating Codecov - We've got you covered ☂️

@jkanche
jkanche merged commit 869ffd8 into master Sep 16, 2026
16 of 17 checks passed
@jkanche
jkanche deleted the update-hatchit branch September 16, 2026 16:44
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.

2 participants