Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,24 @@ jobs:
- name: Test with Pytest
run: uv run pytest --log-cli-level=DEBUG -vv -s
shell: bash

build:
name: Build Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.11"
activate-environment: true
- name: Build package
run: uv build
Comment on lines +53 to +64
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is here mainly as a test, if we ever do anything to break building, this should catch it.

release:
runs-on: ubuntu-latest
needs:
- test
- build
concurrency: release
if: github.ref == 'refs/heads/main'
permissions:
Expand All @@ -70,6 +84,10 @@ jobs:
with:
fetch-depth: 0
persist-credentials: false
- name: Set up uv
uses: astral-sh/setup-uv@v7
with:
python-version: "3.11"
- name: Python Semantic Release
id: release
uses: python-semantic-release/python-semantic-release@v10.4.1
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ build-backend = "hatchling.build"
branch = "main"
version_toml = ["pyproject.toml:project.version"]
build_command = """
python -m pip install -e '.[build]'
uv lock --upgrade-package "$PACKAGE_NAME"
git add uv.lock
uv build
Expand Down