Skip to content

Migrate package to hatch - #64

Merged
jkanche merged 9 commits into
mainfrom
update-hatchit
Sep 29, 2026
Merged

jkanche merged 9 commits into
mainfrom
update-hatchit

Conversation

@jkanche

@jkanche jkanche commented Sep 29, 2026

Copy link
Copy Markdown
Member

No description provided.

@jkanche jkanche self-assigned this Sep 29, 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.11
- name: Set up Python 3.12
uses: actions/setup-python@v5
with:
python-version: 3.11
python-version: 3.12

- name: Install tox
run: python -m pip install tox

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install tox
- name: Test
run: tox -e default

- name: Test with tox
run: |
tox
- name: Build Project
run: tox -e build

- 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

- name: Build Project and Publish
run: |
python -m tox -e clean,build
publish-pypi:

- name: Upload coverage reports to Codecov with GitHub Action
uses: codecov/codecov-action@v5
uses: codecov/codecov-action@v7
@codecov

codecov Bot commented Sep 29, 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 73e9091 into main Sep 29, 2026
11 checks passed
@jkanche
jkanche deleted the update-hatchit branch September 29, 2026 07:52
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