This guide helps you verify that the pixi-based setup is working correctly.
- Install pixi: https://pixi.sh/install/
curl -fsSL https://pixi.sh/install.sh | bash
# Install all dependencies
pixi install
# Verify dependencies are installed
pixi listYou should see:
- ruby (>=3.4.8)
- nodejs (>=25.2.1)
- python (>=3.14.2)
- imagemagick (>=7.1.2_12)
- nbconvert (>=7.16.6)
- And other build tools
# Generate requirements.txt from pixi.toml
pixi run export-requirements
# Verify the file was created/updated
cat requirements.txtThe file should contain Python dependencies (like nbconvert) and have a header comment explaining it's auto-generated.
# Build the site
pixi run build
# Check if _site directory was created
ls -la _siteThe build should complete without errors and create the _site directory.
# Start the development server
pixi run devThe server should start on http://localhost:4000 (or similar). Press Ctrl+C to stop.
# Run purgecss
pixi run purgecssThis should process CSS files without errors.
You can validate workflow files locally using act (optional):
# Install act (optional, for local workflow testing)
# https://github.com/nektos/act
# Test deploy workflow (dry run)
act -l- Go to your GitHub repository
- Navigate to Actions tab
- Select Update requirements.txt workflow
- Click Run workflow → Run workflow
- Check if it successfully generates and commits
requirements.txt
- Make a small change to trigger the deploy workflow (e.g., edit a markdown file)
- Push to
mainormasterbranch - Go to Actions tab
- Watch the Deploy site workflow run
- Verify it completes successfully
- Edit
pixi.toml(e.g., change a version number) - Commit and push
- The Update requirements.txt workflow should automatically run
- Check if it commits an updated
requirements.txt
-
pixi installcompletes without errors -
pixi run export-requirementsgeneratesrequirements.txt -
pixi run buildcreates_sitedirectory -
pixi run devstarts the development server -
pixi run purgecssruns without errors - GitHub Actions workflows run successfully
-
requirements.txtis auto-updated whenpixi.tomlchanges
Solution: Install pixi from https://pixi.sh/install/
Solution: Make sure you run pixi install first, which installs bundler via the install task.
Solution: ImageMagick should be installed via pixi. Verify with pixi list | grep imagemagick
Solution:
- Check workflow permissions (should have
contents: write) - Verify the workflow runs on
pixi.tomlchanges - Check workflow logs for errors
Solution: The workflow uses prefix-dev/setup-pixi@v0.10.0 action. If it fails, check:
- The action version is correct
- GitHub Actions has network access
- The workflow file syntax is correct
Run this to test everything at once:
#!/bin/bash
set -e
echo "🧪 Testing pixi setup..."
echo "1. Installing dependencies..."
pixi install
echo "2. Exporting requirements.txt..."
pixi run export-requirements
echo "3. Building site..."
pixi run build
echo "4. Testing purgecss..."
pixi run purgecss
echo "✅ All tests passed!"Save as test.sh, make it executable (chmod +x test.sh), and run it.