Skip to content

A GitHub Action for opentype-sanitizer testing of font artifacts

License

Notifications You must be signed in to change notification settings

f-actions/opentype-sanitizer

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

f-actions/opentype-sanitizer GitHub Action

Version Linux CI macOS CI Lint

This GitHub Action installs the Python wrapper for opentype-santizer and executes tests on font artifacts. It is confirmed to function with Ubuntu and macOS GitHub Action runners and cPython versions 3.6+.

Quick Start

Default

name: OpenType Sanitizer tests

on: [push, pull_request]

jobs:
  opentype-sanitizer:
    runs-on: ubuntu-latest
    name: OpenType Sanitizer tests
    steps:
      - name: Check out source repository
        uses: actions/checkout@v3
      - name: Set up Python environment
        uses: actions/setup-python@v4
        with:
          python-version: "3.11"
      - name: OpenType Sanitizer tests
        uses: f-actions/opentype-sanitizer@v2
        with:
          path: path/to/*.ttf

With custom settings

name: OpenType Sanitizer tests

on: [push, pull_request]

jobs:
  opentype-sanitizer:
    runs-on: ubuntu-latest
    name: OpenType Sanitizer tests
    steps:
      - name: Check out source repository
        uses: actions/checkout@v3
      - name: Set up Python environment
        uses: actions/setup-python@v4
        with:
          python-version: "3.8"
      - name: OpenType Sanitizer tests
        uses: f-actions/opentype-sanitizer@v2
        with:
          update-pip: "true"
          version: "8.0.0"
          path: "path/to/*.ttf"

See the Inputs section below for details on the defaults and optional configuration settings.

Inputs

Configure the Action with the following settings:

path

Mandatory The path to the font artifact(s). You may use file path wildcards in this definition. For example:

path: "path/to/*.ttf"

will test all files with a .ttf extension in the path/to directory relative to the root of your source repository.

version

Optional The opentype-sanitizer Python wrapper version. Options: ["latest", "[VERSION]"]. Default: "latest" = latest PyPI release.

update-pip

Optional Update pip before the opentype-sanitizer Python wrapper install. Options: ["true", "false"]. Default: "false".

Outputs

None

License

Apache License, v2.0