Skip to content

Update GitHub Artifact Actions #270

Update GitHub Artifact Actions

Update GitHub Artifact Actions #270

Workflow file for this run

name: Run Tests
on:
push:
paths-ignore:
- README*
pull_request:
branches: [ master ]
workflow_dispatch:
inputs:
reason:
description: 'Reason for running'
required: true
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
with:
fetch-depth: 0 # Fetch full history for setuptools_scm
- name: Log reason (manual run only)
if: github.event_name == 'workflow_dispatch'
run: |
echo "Reason for triggering: ${{ github.event.inputs.reason }}"
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: 3.14
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y build-essential pkg-config zlib1g-dev libtool autotools-dev
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install setuptools>=61.0
python -m pip install -r requirements.txt
python -m pip install opentype-sanitizer
- name: Download OTS source
run: |
python setup.py download --version=9.2.0 --sha256=1a1e50cd7ecea27c4ef04c5b1491c21e75555f35bf91e27103ede04ddd11e053
- name: Lint with flake8
run: flake8 . --show-source --statistics
- name: Lint with cpplint
run: cpplint --filter=-build/includesubdir,-readability/casting,-build/include --recursive src/_pyots/
- name: Build and install
run: |
python -m pip install -v .
- name: Test with pytest
run: |
pytest -v tests