[DEV]: add pixi.lock and add pixi to pyproject.toml #2
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- | |
| 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 |