Use publishable SPSS engine dependency #64
This file contains hidden or 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: 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: | |
| repository: OpenStatSpec/specification | |
| ref: b2c9283eb3bf7103bff324731922358672974aee | |
| path: openstatspec-specification | |
| - name: Checkout required SPSS engine | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: TonisOrmisson/pyspssio | |
| ref: baf8958a162aa35e11b4fdc73b807a9e81070eb4 | |
| 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: | |
| repository: OpenStatSpec/specification | |
| ref: b2c9283eb3bf7103bff324731922358672974aee | |
| path: openstatspec-specification | |
| - name: Checkout required SPSS engine | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: TonisOrmisson/pyspssio | |
| ref: baf8958a162aa35e11b4fdc73b807a9e81070eb4 | |
| path: openstatspec-pyspssio | |
| - 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 | |
| sql-services: | |
| runs-on: ubuntu-latest | |
| services: | |
| postgres: | |
| image: postgres:16 | |
| 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 | |
| mysql: | |
| image: mysql:8.4 | |
| ports: | |
| - 3306:3306 | |
| env: | |
| MYSQL_DATABASE: openstatspec | |
| MYSQL_USER: openstatspec | |
| MYSQL_PASSWORD: openstatspec | |
| MYSQL_ROOT_PASSWORD: root | |
| options: >- | |
| --health-cmd "mysqladmin ping -h localhost -uroot -proot" | |
| --health-interval 10s --health-timeout 5s --health-retries 10 | |
| mariadb: | |
| image: mariadb:11.4 | |
| ports: | |
| - 3307:3306 | |
| env: | |
| MARIADB_DATABASE: openstatspec | |
| MARIADB_USER: openstatspec | |
| MARIADB_PASSWORD: openstatspec | |
| MARIADB_ROOT_PASSWORD: root | |
| options: >- | |
| --health-cmd "mariadb-admin ping -h localhost -uroot -proot" | |
| --health-interval 10s --health-timeout 5s --health-retries 10 | |
| env: | |
| OPENSTATSPEC_POSTGRES_URL: postgresql+psycopg://openstatspec:openstatspec@localhost:5432/openstatspec | |
| OPENSTATSPEC_MYSQL_URL: mysql+pymysql://openstatspec:openstatspec@localhost:3306/openstatspec | |
| OPENSTATSPEC_MARIADB_URL: mysql+pymysql://openstatspec:openstatspec@localhost:3307/openstatspec | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - name: Checkout OpenStatSpec specification fixtures | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: OpenStatSpec/specification | |
| ref: b2c9283eb3bf7103bff324731922358672974aee | |
| path: openstatspec-specification | |
| - name: Checkout required SPSS engine | |
| uses: actions/checkout@v7 | |
| with: | |
| repository: TonisOrmisson/pyspssio | |
| ref: baf8958a162aa35e11b4fdc73b807a9e81070eb4 | |
| path: openstatspec-pyspssio | |
| - 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 |