Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[DEV]: add pixi.lock and add pixi to pyproject.toml #1

[DEV]: add pixi.lock and add pixi to pyproject.toml

[DEV]: add pixi.lock and add pixi to pyproject.toml #1

Workflow file for this run

---
name: Check pixi lockfile
# check that pixi.lock is consistent with pyproject.toml and ask user to
# regenerate and commit if not.
on:
pull_request:
paths:
- pyproject.toml
- pixi.lock
- .github/workflows/pixi-lock-check.yml
push:
branches: [main]
paths:
- pyproject.toml
- pixi.lock
- .github/workflows/pixi-lock-check.yml
jobs:
check-lockfile:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up pixi
uses: prefix-dev/[email protected]
with:
run-install: false
manifest-path: pyproject.toml
- name: Check that pixi.lock is up to date
run: |
if ! pixi install --locked --manifest-path pyproject.toml; then
echo "::error file=pixi.lock::pixi.lock is not consistent with pyproject.toml. Run 'pixi lock' locally and commit the updated pixi.lock."
exit 1
fi