Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
4 changes: 4 additions & 0 deletions .github/workflows/ci-copier.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@ jobs:
yq eval '.on = ["push"]' -i .github/workflows/build.yml
git add .github/workflows/ci.yml .github/workflows/build.yml
git commit -m "Replace actions trigger with on: [push]"
# create pixi.lock
pixi list --manifest-path pixi.toml --color=always
git add pixi.lock
git commit -m "Create pixi.lock"
# Push the generated package's HEAD commit to a `ci/*` branch
cid=$(git rev-parse HEAD)
git push -f "${GITHUB_SERVER_URL/https:\/\//git@}:$GITHUB_REPOSITORY" $cid:refs/heads/ci/${GITHUB_SHA}-${{ matrix.minimal-python-version }}
Expand Down
2 changes: 2 additions & 0 deletions template/.github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,8 @@ jobs:
environments: build
- name: Build project
run: pixi run -e build build-wheel
- name: Check package
run: pixi run -e build check-wheel
- name: Upload package
uses: actions/upload-artifact@v4
with:
Expand Down
4 changes: 3 additions & 1 deletion template/pixi.toml.jinja
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,11 @@ test = "pytest"
test-coverage = "pytest --cov={{ project_slug_snake_case }} --cov-report=xml --cov-report=term-missing"

[feature.build.dependencies]
build = "*"
python-build = "*"
twine = "*"
[feature.build.tasks]
build-wheel = "python -m build --no-isolation ."
check-wheel = "twine check dist/*"

[feature.lint.dependencies]
pre-commit = "*"
Expand Down