New Check: FAIL on bad postscript names #183
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: π§βπ¬ Lint & Test | |
on: | |
push: | |
branches: | |
- '**' | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
- '**.txt' | |
- '!requirements*.txt' | |
tags-ignore: | |
- '**' | |
pull_request: | |
paths-ignore: | |
- 'docs/**' | |
- '**.md' | |
- '**.txt' | |
- '!requirements*.txt' | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # unshallow fetch for setuptools-scm (otherwise the version is always 0.1.dev1) | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
cache: 'pip' # caching pip dependencies | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements.txt -r requirements-tests.txt | |
- name: Run black, flake8, and pylint | |
run: | | |
black . --check --diff --color | |
flake8 | |
pylint Lib tests | |
test: | |
needs: lint | |
runs-on: ${{ matrix.os }} | |
strategy: | |
fail-fast: false | |
matrix: | |
os: [ubuntu-latest, macos-latest, windows-latest] | |
python-version: ["3.8", "3.9", "3.10", "3.11"] | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 # unshallow fetch for setuptools-scm (otherwise the version is always 0.1.dev1) | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
cache: 'pip' # caching pip dependencies | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install -r requirements.txt -r requirements-tests.txt | |
python -m pip freeze --all | |
- name: Install FontBakery | |
run: | | |
python -m pip install . --use-pep517 | |
- name: Test with pytest | |
run: | | |
python -m pytest | |
- name: Run coverage (only Ubuntu/Python 3.10) | |
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.10' | |
run: | | |
python -m pytest --quiet --cov | |