video fix for non youtube #4124
Workflow file for this run
This file contains 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
--- | |
name: Content CI | |
on: | |
pull_request: | |
push: | |
branches: | |
- main | |
jobs: | |
validation: | |
timeout-minutes: 10 | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-python@v2 | |
with: | |
python-version: "3.12" | |
- name: Install raise-mbtools | |
run: pip install git+https://github.com/openstax/raise-mbtools@main | |
- name: Validate mbz | |
run: | | |
validate-mbz-html mbz errors.csv mbz --no-style | |
CSV_LINES=$(wc -l < errors.csv ) | |
if [[ $CSV_LINES != "1" ]]; then | |
echo "Validation errors found in mbz:" | |
cat errors.csv | |
exit 1 | |
fi | |
- name: Validate html | |
run: | | |
validate-mbz-html html errors.csv html | |
CSV_LINES=$(wc -l < errors.csv ) | |
if [[ $CSV_LINES != "1" ]]; then | |
echo "Validation errors found in html:" | |
cat errors.csv | |
exit 1 | |
fi | |
- name: Validate html including missing uuid | |
run: | | |
validate-mbz-html html errors.csv html --uuids-populated | |
CSV_LINES=$(wc -l < errors.csv ) | |
echo "$(($CSV_LINES-1)) missing UUID errors found in html" | |
cat errors.csv | |
- name: Validate tooltip JSON | |
run: python -c 'import json; json.load(open("json/glossary-tooltip.json"))' |