docs: improve package description #3
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: tests | |
| on: | |
| push: | |
| branches: | |
| - "**" | |
| pull_request: | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| concurrency: | |
| group: tests-${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| unit: | |
| runs-on: ubuntu-24.04 | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.12"] | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| - name: Check out component sources | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| repository: O2eg/pg_configurator | |
| path: .ci-components/pg_configurator | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| repository: O2eg/pg_diag | |
| path: .ci-components/pg_diag | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| repository: O2eg/pg_perf_bench | |
| path: .ci-components/pg_perf_bench | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| repository: O2eg/pg_stand | |
| path: .ci-components/pg_stand | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| repository: O2eg/pg_workload | |
| path: .ci-components/pg_workload | |
| - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install pg_play and all component sources | |
| run: | | |
| python -m pip install \ | |
| --editable .ci-components/pg_configurator \ | |
| --editable .ci-components/pg_diag \ | |
| --editable .ci-components/pg_perf_bench \ | |
| --editable .ci-components/pg_stand \ | |
| --editable .ci-components/pg_workload \ | |
| --editable '.[dev]' | |
| - run: ruff check --exclude .ci-components . | |
| - run: ruff format --check --exclude .ci-components . | |
| - run: python -m pytest -q | |
| - run: python -m pip check | |
| distribution: | |
| runs-on: ubuntu-24.04 | |
| needs: unit | |
| steps: | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| - name: Check out component sources | |
| uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| repository: O2eg/pg_configurator | |
| path: .ci-components/pg_configurator | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| repository: O2eg/pg_diag | |
| path: .ci-components/pg_diag | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| repository: O2eg/pg_perf_bench | |
| path: .ci-components/pg_perf_bench | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| repository: O2eg/pg_stand | |
| path: .ci-components/pg_stand | |
| - uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6 | |
| with: | |
| repository: O2eg/pg_workload | |
| path: .ci-components/pg_workload | |
| - uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6 | |
| with: | |
| python-version: "3.12" | |
| - run: python -m pip install 'build>=1.2,<2' 'twine>=6,<7' | |
| - run: python -m build | |
| - run: python -m twine check dist/* | |
| - name: Smoke-test wheel and transitive component installation | |
| shell: bash | |
| run: | | |
| python -m venv "${RUNNER_TEMP}/pg-play-wheel-smoke" | |
| "${RUNNER_TEMP}/pg-play-wheel-smoke/bin/python" -m pip install \ | |
| --editable .ci-components/pg_configurator \ | |
| --editable .ci-components/pg_diag \ | |
| --editable .ci-components/pg_perf_bench \ | |
| --editable .ci-components/pg_stand \ | |
| --editable .ci-components/pg_workload | |
| "${RUNNER_TEMP}/pg-play-wheel-smoke/bin/python" -m pip install dist/*.whl | |
| "${RUNNER_TEMP}/pg-play-wheel-smoke/bin/python" -m pip check | |
| "${RUNNER_TEMP}/pg-play-wheel-smoke/bin/pg-play" --version | |
| "${RUNNER_TEMP}/pg-play-wheel-smoke/bin/pg-play" capabilities | |
| for command in pg-configurator pg-diag pg-perf-bench pg-stand pg-workload; do | |
| "${RUNNER_TEMP}/pg-play-wheel-smoke/bin/${command}" --version | |
| done |