#510 3rd PoC - GHC with pixi in GitHub Workflows CI #345
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
| # Main GHC CI workflow. Inspired by | |
| # https://github.com/geopython/pycsw/blob/master/.github/workflows/main.yml | |
| # | |
| # Author: Just van den Broecke - 2021 | |
| # Migrated to pixi - 2026 by @francbartoli | |
| # | |
| name: Main GHC CI ⚙️ | |
| on: [ push, pull_request ] | |
| jobs: | |
| main: | |
| runs-on: ubuntu-24.04 | |
| steps: | |
| - name: Checkout ✅ | |
| uses: actions/checkout@v4 | |
| # Installs pixi (pinned) and the `dev` environment from the committed | |
| # pixi.lock (locked: true fails if the lock is out of sync). Python and | |
| # all dependencies come from the lock, so no separate setup-python step. | |
| - name: Setup pixi 🧰 | |
| uses: prefix-dev/setup-pixi@v0.10.0 | |
| with: | |
| pixi-version: v0.72.0 | |
| environments: dev | |
| locked: true | |
| cache: true | |
| - name: Setup GHC App and init DB 🗃️ | |
| run: | | |
| pixi run -e dev setup | |
| echo -e "admin\ntest\ntest\nyou@example.com\nyou@example.com" | pixi run -e dev python3 GeoHealthCheck/models.py create | |
| - name: Flake8 - Verify Coding Conventions ⚙️ | |
| run: pixi run -e dev flake8 | |
| - name: Load Fixtures Test Data ⚙️ | |
| run: pixi run -e dev python3 GeoHealthCheck/models.py load tests/data/fixtures.json y | |
| - name: Run Probes ⚙️ | |
| run: pixi run -e dev python3 GeoHealthCheck/healthcheck.py | |
| - name: Run Unit Tests ⚙️ | |
| run: pixi run -e dev test | |
| - name: Publish Test Report 📄 | |
| if: always() | |
| run: cat report.md >> "$GITHUB_STEP_SUMMARY" || true | |
| - name: Build Docs 📖 | |
| run: pixi run -e dev bash -c "cd docs && make html" | |
| - name: Cleanup 💯 | |
| run: pixi run -e dev python3 GeoHealthCheck/models.py drop |