1
0
Fork 0
sqlglot/.github/workflows/package-test.yml
Daniel Baumann d9e621c994
Adding upstream version 26.25.3.
Signed-off-by: Daniel Baumann <daniel@debian.org>
2025-06-07 04:46:28 +02:00

33 lines
815 B
YAML

name: Run tests and linter checks
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
run-checks:
runs-on: ubuntu-22.04
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: pip
- name: Create a virtual environment
run: |
python -m venv .venv
- name: Install dependencies
run: |
source ./.venv/bin/activate
python -m pip install --upgrade pip
make install-dev
- name: Run tests and linter checks
run: |
source ./.venv/bin/activate
make check