Skip to content

gh-775: Merge glass-dev/glass-benchmarks to this repository #7

gh-775: Merge glass-dev/glass-benchmarks to this repository

gh-775: Merge glass-dev/glass-benchmarks to this repository #7

---
name: Regression tests
on:
pull_request:
branches:
- main
types:
- opened
- ready_for_review
- reopened
- synchronize
jobs:
regression-tests:
if: github.event.pull_request.draft == false
name: Regression test
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
steps:
- name: Checkout source
uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Python
uses: actions/setup-python@v6
with:
cache-dependency-path: pyproject.toml
cache: pip
python-version: ${{ matrix.python-version }}
- name: Cache nox
uses: actions/cache@v4
with:
key:
regression-${{ hashFiles('pyproject.toml') }}-${{
hashFiles('noxfile.py') }}-${{ env.pythonLocation }}
path: .nox
- name: Install nox
run: python -m pip install nox
- name: Run regression test
run: >-
nox -s regression_tests-${{ matrix.python-version }} -- "$BASE_REF"
"$HEAD_REF"
env:
BASE_REF: ${{ github.event.pull_request.base.ref }}
HEAD_REF: ${{ github.event.pull_request.head.ref }}
FORCE_COLOR: 1