Skip to content

build: drop Python 3.8 support and testing (#492) #130

build: drop Python 3.8 support and testing (#492)

build: drop Python 3.8 support and testing (#492) #130

Workflow file for this run

name: Run full matrix Tests before Releases
on:
workflow_call:
workflow_dispatch:
push:
branches:
- main
permissions:
contents: read
jobs:
pre-release-matrix-test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13", "3.14"]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v5
with:
persist-credentials: false
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
shell: bash
run: |
python -m pip install --upgrade pip
SETUPTOOLS_SCM_PRETEND_VERSION=$(cat .SETUPTOOLS_SCM_PRETEND_VERSION) pip install -e .[test]
- name: Run tests
run: python run_tests.py dev
# Neural tests, with huggingface models cached
- name: Get current week number
shell: bash
run: echo "WEEK_NUMBER=$(date -u +%Y-%V)" >> $GITHUB_OUTPUT
id: weekno
- uses: actions/cache@v5
with:
key: g2p-neural-${{ steps.weekno.outputs.WEEK_NUMBER }}
path: ~/.cache/huggingface
- run: pip install -e .[neural]
- run: python g2p/tests/test_neural.py
# Studio test
- name: Launch the API
shell: bash
run: python run_studio.py &
- name: Run test-studio
run: python g2p/tests/test_studio.py