|
| 1 | +# Quick Testing Guide |
| 2 | + |
| 3 | +## 🚀 Fastest Way to Test |
| 4 | + |
| 5 | +Run the automated test script: |
| 6 | + |
| 7 | +```bash |
| 8 | +./test-setup.sh |
| 9 | +``` |
| 10 | + |
| 11 | +This will test: |
| 12 | +- ✅ pixi installation |
| 13 | +- ✅ Dependency installation |
| 14 | +- ✅ requirements.txt generation |
| 15 | +- ✅ Jekyll build |
| 16 | +- ✅ CSS purging |
| 17 | + |
| 18 | +## 📋 Manual Testing Steps |
| 19 | + |
| 20 | +### 1. Install Dependencies |
| 21 | +```bash |
| 22 | +pixi install |
| 23 | +``` |
| 24 | + |
| 25 | +### 2. Generate requirements.txt |
| 26 | +```bash |
| 27 | +pixi run export-requirements |
| 28 | +``` |
| 29 | + |
| 30 | +### 3. Build the Site |
| 31 | +```bash |
| 32 | +pixi run build |
| 33 | +``` |
| 34 | + |
| 35 | +### 4. Test Development Server (optional) |
| 36 | +```bash |
| 37 | +pixi run dev |
| 38 | +# Visit http://localhost:4000 |
| 39 | +``` |
| 40 | + |
| 41 | +## 🔍 Verify Everything Works |
| 42 | + |
| 43 | +### Check Dependencies |
| 44 | +```bash |
| 45 | +pixi list |
| 46 | +``` |
| 47 | + |
| 48 | +Should show: ruby, nodejs, python, imagemagick, nbconvert, etc. |
| 49 | + |
| 50 | +### Check Generated Files |
| 51 | +```bash |
| 52 | +ls -la requirements.txt # Should exist |
| 53 | +ls -la _site/ # Should exist after build |
| 54 | +``` |
| 55 | + |
| 56 | +### Check Tasks |
| 57 | +```bash |
| 58 | +pixi task list |
| 59 | +``` |
| 60 | + |
| 61 | +Should show: install, dev, build, clean, export-requirements, purgecss |
| 62 | + |
| 63 | +## 🧪 Test GitHub Actions |
| 64 | + |
| 65 | +### Option 1: Manual Trigger |
| 66 | +1. Go to GitHub → Actions |
| 67 | +2. Select "Update requirements.txt" |
| 68 | +3. Click "Run workflow" → "Run workflow" |
| 69 | + |
| 70 | +### Option 2: Trigger by Changing pixi.toml |
| 71 | +1. Edit `pixi.toml` (change a version or add a comment) |
| 72 | +2. Commit and push |
| 73 | +3. Watch the workflow run automatically |
| 74 | + |
| 75 | +### Option 3: Test Deploy Workflow |
| 76 | +1. Make a small change to any markdown file |
| 77 | +2. Commit and push |
| 78 | +3. Check Actions tab for "Deploy site" workflow |
| 79 | + |
| 80 | +## ⚠️ Common Issues |
| 81 | + |
| 82 | +**"pixi: command not found"** |
| 83 | +→ Install pixi: https://pixi.sh/install/ |
| 84 | + |
| 85 | +**"bundle: command not found"** |
| 86 | +→ Run `pixi install` first (it installs bundler) |
| 87 | + |
| 88 | +**Build fails** |
| 89 | +→ Check that all dependencies are installed: `pixi list` |
| 90 | + |
| 91 | +**Workflow fails in GitHub Actions** |
| 92 | +→ Check workflow logs in Actions tab for specific errors |
| 93 | + |
| 94 | +## ✅ Success Checklist |
| 95 | + |
| 96 | +- [ ] `pixi install` works |
| 97 | +- [ ] `pixi run export-requirements` creates requirements.txt |
| 98 | +- [ ] `pixi run build` creates _site directory |
| 99 | +- [ ] `pixi run dev` starts server (optional) |
| 100 | +- [ ] GitHub Actions workflows run successfully |
| 101 | +- [ ] requirements.txt auto-updates when pixi.toml changes |
0 commit comments