Revert "Merge pull request #1038 from googlefonts/space-glyphOrder" #893
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: 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 |