Skip to content

Fix SPSS VLS compatible names #87

Fix SPSS VLS compatible names

Fix SPSS VLS compatible names #87

Workflow file for this run

name: CI
on:
push:
pull_request:
env:
OPENSTATSPEC_SPECIFICATION_DIR: ${{ github.workspace }}/openstatspec-specification
jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13", "3.14"]
steps:
- uses: actions/checkout@v7
- name: Checkout OpenStatSpec specification fixtures
uses: actions/checkout@v7
with: &specification-checkout
repository: OpenStatSpec/specification
ref: 7edcad38470fffebfe2306f22fdecb6892f8eece
path: openstatspec-specification
- name: Checkout required SPSS engine
uses: actions/checkout@v7
with: &engine-checkout
repository: TonisOrmisson/pyspssio
ref: e069adf33c70bcd9e8e6ee495106479463a84fa2
path: openstatspec-pyspssio
- uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- run: python -m pip install --upgrade pip
- run: python -m pip install ./openstatspec-pyspssio
- run: python -m pip install -e ".[dev]"
- run: python -m pytest -m "not services"
package-smoke:
name: Build and install package artifact
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v7
- name: Checkout OpenStatSpec specification fixtures
uses: actions/checkout@v7
with: *specification-checkout
- name: Checkout required SPSS engine
uses: actions/checkout@v7
with: *engine-checkout
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- run: python -m pip install --upgrade pip build
- run: python -m build
- run: python -m venv /tmp/openstatspec-wheel-smoke
- run: /tmp/openstatspec-wheel-smoke/bin/python -m pip install ./openstatspec-pyspssio
- run: /tmp/openstatspec-wheel-smoke/bin/python -m pip install dist/*.whl
- run: /tmp/openstatspec-wheel-smoke/bin/openstatspec capabilities
postgres-integration:
name: PostgreSQL ${{ matrix.postgres }} integration
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
postgres: ["17", "18"]
services:
postgres:
image: postgres:${{ matrix.postgres }}
ports: ["5432:5432"]
env:
POSTGRES_DB: openstatspec
POSTGRES_USER: openstatspec
POSTGRES_PASSWORD: openstatspec
options: >-
--health-cmd "pg_isready -U openstatspec -d openstatspec"
--health-interval 10s --health-timeout 5s --health-retries 5
env:
OPENSTATSPEC_POSTGRES_URL: postgresql+psycopg://openstatspec:openstatspec@localhost:5432/openstatspec
steps: &sql-test-steps
- uses: actions/checkout@v7
- name: Checkout OpenStatSpec specification fixtures
uses: actions/checkout@v7
with: *specification-checkout
- name: Checkout required SPSS engine
uses: actions/checkout@v7
with: *engine-checkout
- uses: actions/setup-python@v7
with:
python-version: "3.12"
- run: python -m pip install --upgrade pip
- run: python -m pip install ./openstatspec-pyspssio
- run: python -m pip install -e ".[dev,sql]"
- run: python -m pytest -m services
mysql-integration:
name: MySQL ${{ matrix.mysql }} integration
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
mysql: ["8.4", "9.7"]
services:
mysql:
image: mysql:${{ matrix.mysql }}
ports: ["3306:3306"]
env:
MYSQL_DATABASE: openstatspec
MYSQL_USER: openstatspec
MYSQL_PASSWORD: openstatspec
MYSQL_ROOT_PASSWORD: root
options: >-
--health-cmd "mysqladmin ping -h 127.0.0.1 -uopenstatspec -popenstatspec"
--health-interval 10s --health-timeout 5s --health-retries 10
env:
OPENSTATSPEC_MYSQL_URL: mysql+pymysql://openstatspec:openstatspec@localhost:3306/openstatspec
steps: *sql-test-steps
mariadb-integration:
name: MariaDB ${{ matrix.mariadb }} integration
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
mariadb: ["11.4", "11.8", "12.3"]
services:
mariadb:
image: mariadb:${{ matrix.mariadb }}
ports: ["3306:3306"]
env:
MARIADB_DATABASE: openstatspec
MARIADB_USER: openstatspec
MARIADB_PASSWORD: openstatspec
MARIADB_ROOT_PASSWORD: root
options: >-
--health-cmd "healthcheck.sh --connect --innodb_initialized"
--health-interval 10s --health-timeout 5s --health-retries 10
env:
OPENSTATSPEC_MARIADB_URL: mysql+pymysql://openstatspec:openstatspec@localhost:3306/openstatspec
steps: *sql-test-steps