Bump actions/checkout from 6.0.2 to 6.0.3 #176
Workflow file for this run
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: CI | |
| on: | |
| - push | |
| - pull_request | |
| - workflow_dispatch | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: {} | |
| jobs: | |
| main: | |
| strategy: | |
| matrix: | |
| include: | |
| - python: '3.10' | |
| - python: '3.11' | |
| - python: '3.12' | |
| - python: '3.13' | |
| - python: '3.14' | |
| runs-on: ubuntu-latest | |
| name: Python ${{ matrix.python }} | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3 | |
| with: | |
| persist-credentials: false | |
| - name: set up Python | |
| uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: apt update | |
| run: | |
| sudo apt-get update | |
| - name: install APT dependencies | |
| run: | |
| sudo apt-get install fonts-roboto fonts-dejavu | |
| - name: update PIP | |
| run: | |
| python -m pip install --upgrade pip | |
| - name: install package | |
| run: | |
| python -m pip install .[dev,mypy] | |
| - name: run tests with fontconfig | |
| run: | | |
| python -c "from brother_ql_web.font_helpers import _has_fontra; assert not _has_fontra()" | |
| python -m unittest discover --verbose --start-directory tests | |
| - name: install fontra | |
| run: | |
| python -m pip install .[fontra] | |
| - name: run tests with fontra | |
| run: | | |
| python -c "from brother_ql_web.font_helpers import _has_fontra; assert _has_fontra()" | |
| python -m unittest discover --verbose --start-directory tests | |
| - name: run flake8 | |
| run: | |
| python -m flake8 | |
| - name: run black | |
| run: | |
| black --check --diff . | |
| - name: run mypy | |
| run: | |
| mypy brother_ql_web/ tests/ | |
| - name: codespell | |
| run: | |
| codespell --skip "*.min.js*,*.min.css*" * .github |