Matplotlib Fontcache Update Bot #12
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
| name: Matplotlib Fontcache Update Bot | |
| on: | |
| workflow_dispatch: | |
| schedule: | |
| - cron: '0 0 * * *' | |
| jobs: | |
| update_matplotlib_fontcache: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| branch: [main, emscripten-4x] | |
| if: (github.event_name == 'schedule' && github.repository == 'emscripten-forge/recipes') || (github.event_name != 'schedule') | |
| runs-on: [ubuntu-latest] | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ matrix.branch }} | |
| - name: Install micromamba | |
| uses: mamba-org/setup-micromamba@v2 | |
| with: | |
| environment-file: ci_env.yml | |
| create-args: >- | |
| microsoft::playwright | |
| pyjs_code_runner | |
| - name: Update matplotlib font cache if needed | |
| shell: bash -l -eo pipefail {0} | |
| run: | | |
| playwright install | |
| python -m emci bot update-matplotlib-fontcache ${{ matrix.branch }} | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.BOT_ACCESS_TOKEN }} |