- Directory rename: fragments/ → ingredients/ (54 .ks files) - Updated all Python scripts: * tests/integration/conftest.py - fixture renames * tests/integration/test_integration.py - constant and path updates * tests/test_recipe_generator.py - updated test assertions * recipe-generator/validators.py - updated comments and error messages * recipe-generator/recipe_generator.py - updated comment - Updated all YAML files: * recipe-generator/recipe_templates.yaml - 66 path references * .gitea/workflows/validate-fragments.yaml → validate-ingredients.yaml * .gitea/workflows/test-generation.yaml - path patterns - Updated scripts: * bin/ksflatten-relative - updated path detection - Updated test file: * tests/integration/test_fragments.py → test_ingredients.py - Updated documentation: * DEVELOPMENT.md - simplified references * DEVELOPMENT_QUICK.md - updated examples * tests/container/README.md - test references - Regenerated all recipes (16 files) with ingredient paths - Updated test fixtures (7 files) - All integration tests pass (5/5) - All unit tests pass (29/31 - 2 pre-existing failures unrelated)
52 lines
1.2 KiB
YAML
52 lines
1.2 KiB
YAML
name: test-generation
|
|
|
|
on:
|
|
push:
|
|
paths:
|
|
- 'recipe-generator/**/*.py'
|
|
- 'recipe-generator/**/*.yaml'
|
|
- 'ingredients/**/*.ks'
|
|
pull_request:
|
|
paths:
|
|
- 'recipe-generator/**/*.py'
|
|
- 'recipe-generator/**/*.yaml'
|
|
|
|
jobs:
|
|
generate:
|
|
runs-on: fedora
|
|
container:
|
|
image: git.phyllo.me/devops/fedora-runner-image:latest
|
|
|
|
steps:
|
|
- uses: https://git.phyllo.me/devops/checkout@v5
|
|
with:
|
|
fetch-depth: 0
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
pip install PyYAML pykickstart
|
|
|
|
- name: Generate all variants
|
|
run: |
|
|
cd recipe-generator
|
|
python3 generate_recipe.py \
|
|
--manifest recipes_manifest.yaml \
|
|
--output-dir ../recipes/
|
|
|
|
- name: Verify 16 recipes created
|
|
run: |
|
|
count=$(ls recipes/*.cfg | wc -l)
|
|
if [ $count -ne 16 ]; then
|
|
echo "Expected 16 recipes, got $count"
|
|
exit 1
|
|
fi
|
|
echo "✓ Generated $count recipes"
|
|
|
|
- name: Upload generated recipes
|
|
uses: actions/upload-artifact@v3
|
|
with:
|
|
name: generated-recipes
|
|
path: recipes/
|
|
if-no-files-found: error
|
|
retention-days: 7
|