27 lines
681 B
YAML
27 lines
681 B
YAML
name: ci
|
|
|
|
on:
|
|
push:
|
|
pull_request:
|
|
|
|
jobs:
|
|
# Bump when the recipe language changes; both jobs share the runner.
|
|
cook:
|
|
runs-on: fedora
|
|
defaults:
|
|
run:
|
|
shell: bash
|
|
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 Python deps
|
|
run: pip install -r cook/requirements.txt
|
|
- name: Lint manifest + templates
|
|
run: make -C cook lint
|
|
- name: Generate recipes + dishes, validate every dish
|
|
run: make -C cook all
|
|
- name: Run the pytest suite
|
|
run: make -C cook test |