Create Apa #172
Workflow file for this run
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: Tests | |
on: [push, pull_request] | |
jobs: | |
lint: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout full upstream repo | |
uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Check formatting with Black | |
uses: psf/black@stable | |
test: | |
runs-on: ${{ matrix.os }} | |
strategy: | |
matrix: | |
os: [windows-latest, ubuntu-latest] | |
python-version: [3.7, 3.8] | |
steps: | |
- name: Checkout full upstream repo | |
uses: actions/checkout@v2 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v2 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install fontforge (Linux) | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
wget -O fontforge https://github.com/fontforge/fontforge/releases/download/20201107/FontForge-2020-11-07-21ad4a1-x86_64.AppImage | |
chmod +x fontforge | |
sudo mv fontforge /usr/bin/ | |
- name: Install fontforge (Windows) | |
if: matrix.os == 'windows-latest' | |
run: | | |
Invoke-WebRequest -Uri https://github.com/fontforge/fontforge/releases/download/20201107/FontForge-2020-11-07-Windows.exe -OutFile fontforge.exe | |
.\fontforge.exe /SP- /VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL | Out-Null | |
echo "C:\Program Files (x86)\FontForgeBuilds\bin" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append | |
- name: Install Potrace | |
if: matrix.os == 'ubuntu-latest' | |
run: | | |
sudo apt install -y potrace | |
- name: Install Handwrite | |
run: | | |
pip install -e . | |
- name: Test | |
run: | | |
python setup.py test |