Skip to content

Dev themes

Dev themes #387

name: Test with Python 🐍 totolo 🤖
on:
workflow_dispatch:
push:
branches: [ master ]
pull_request:
jobs:
test-with-totolo:
runs-on: ubuntu-latest
steps:
- name: Check out main repo
uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install totolo
- name: Test with totolo
run: |
python -c "import totolo; o=totolo.files('./notes'); assert(len(o.story)>0 and len(o.theme)>0);"
- name: Print warnings with totolo
run: |
git clone https://github.com/theme-ontology/theming.wiki.git wiki
cd wiki
rm -f warnings.md
printf "# Syntax Warnings (autogenerated)\n\n" >> warnings.md
printf "**cmd**: \`import totolo; o=totolo.files('../notes'); o.print_warnings()\`\n\n" >> warnings.md
printf "**output**:\n\n" >> warnings.md
printf "\`\`\`\n" >> warnings.md
python -c "import totolo; o=totolo.files('../notes'); o.print_warnings()" >> warnings.md
printf "\`\`\`\n\n" >> warnings.md
printf "*<end>*\n\n" >> warnings.md
cd ..
- name: Write wiki
uses: Andrew-Chen-Wang/github-wiki-action@v4