Merge pull request #26 from subhayu99/subhayu99/personal-resume-bullets #35
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
| # ==================================================================== | |
| # Resume Validation Workflow | |
| # ==================================================================== | |
| # This workflow validates your resume.yaml file when you push changes. | |
| # It helps catch errors early before deployment. | |
| # | |
| # Runs on: | |
| # - Push to any branch (when resume.yaml changes) | |
| # - Pull requests (when resume.yaml changes) | |
| # - Manual trigger | |
| # ==================================================================== | |
| name: Validate Resume | |
| on: | |
| push: | |
| paths: | |
| - 'resume.yaml' | |
| - 'resume.config.yaml' | |
| pull_request: | |
| paths: | |
| - 'resume.yaml' | |
| - 'resume.config.yaml' | |
| workflow_dispatch: | |
| jobs: | |
| validate: | |
| name: 🔍 Validate Resume YAML | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 📥 Checkout repository | |
| uses: actions/checkout@v4 | |
| - name: 🐍 Setup Python 3.11 | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.11' | |
| - name: 📦 Install dependencies | |
| run: | | |
| pip install pyyaml | |
| pip install "rendercv[full]" | |
| - name: ✅ Validate resume.yaml syntax | |
| run: | | |
| echo "Checking if resume.yaml exists..." | |
| if [ -f "resume.yaml" ]; then | |
| echo "✓ resume.yaml found" | |
| echo "" | |
| echo "Validating YAML syntax..." | |
| python -c "import yaml; yaml.safe_load(open('resume.yaml'))" | |
| echo "✓ YAML syntax is valid" | |
| else | |
| echo "⚠️ No resume.yaml found - will use example on deployment" | |
| fi | |
| - name: 🎨 Test Resume Generation | |
| run: | | |
| if [ -f "resume.yaml" ]; then | |
| echo "Testing resume generation with RenderCV..." | |
| rendercv render resume.yaml --use-local-latex-command lualatex || true | |
| echo "" | |
| echo "✅ Resume validation complete!" | |
| echo "" | |
| echo "Note: PDF generation may fail in CI if LaTeX is not available," | |
| echo "but the YAML structure has been validated successfully." | |
| fi | |
| - name: 📊 Resume Stats | |
| run: | | |
| if [ -f "resume.yaml" ]; then | |
| echo "📄 Resume Statistics:" | |
| echo "━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━" | |
| echo "File size: $(stat -f%z resume.yaml 2>/dev/null || stat -c%s resume.yaml) bytes" | |
| echo "Line count: $(wc -l < resume.yaml) lines" | |
| echo "" | |
| echo "Your resume will be automatically processed when you merge this to main!" | |
| fi |