Skip to content

Merge pull request #1044 from googlefonts/revert-1038 #895

Merge pull request #1044 from googlefonts/revert-1038

Merge pull request #1044 from googlefonts/revert-1038 #895

Workflow file for this run

name: Regression Tests
on:
push:
branches: [main]
tags: ["v*.*.*"]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Set up Python
uses: actions/setup-python@v4
# Check out a *known good* version
# For now I am assuming 'main' is known good
- uses: actions/checkout@v3
with:
repository: googlefonts/glyphsLib
ref: main
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python3 -m venv generate
. ./generate/bin/activate && pip install -r requirements.txt -r requirements-dev.txt
- name: Generate test files
run: . ./generate/bin/activate && python3 tests/tools/generate_regression_test_files.py
env:
PYTHONPATH: Lib
# Now check out the version we want to test
- uses: actions/checkout@v3
with:
clean: false
- name: Reinstall dependencies
run: |
python3 -m venv regression
. ./regression/bin/activate && pip install -r requirements.txt -r requirements-dev.txt
- name: Run tests
run: . ./regression/bin/activate && pytest --run-regression-tests tests/regression_test.py -n auto
env:
PYTHONPATH: Lib