docs(echo): add TRL backend note for ECHO #307
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: Package CI | |
| on: | |
| pull_request: | |
| branches: | |
| - main | |
| - release | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: read | |
| jobs: | |
| package: | |
| name: Build and smoke-test package | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: "3.11" | |
| - name: Install build dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install build twine | |
| - name: Build package | |
| run: python -m build | |
| - name: Check package metadata | |
| run: python -m twine check dist/* | |
| - name: List package contents | |
| run: tar -tzf dist/*.tar.gz | head -40 | |
| - name: Smoke-test wheel install | |
| run: | | |
| python -m venv .pkg-smoke-wheel | |
| . .pkg-smoke-wheel/bin/activate | |
| python -m pip install --upgrade pip | |
| python -m pip install dist/*.whl | |
| python - <<'PY' | |
| import importlib.metadata | |
| import openenv | |
| installed = importlib.metadata.version("openenv") | |
| assert openenv.__version__ == installed, (openenv.__version__, installed) | |
| print(f"openenv {installed}") | |
| PY | |
| openenv --help | |
| - name: Smoke-test source distribution install | |
| run: | | |
| python -m venv .pkg-smoke-sdist | |
| . .pkg-smoke-sdist/bin/activate | |
| python -m pip install --upgrade pip | |
| python -m pip install dist/*.tar.gz | |
| python - <<'PY' | |
| import importlib.metadata | |
| import openenv | |
| installed = importlib.metadata.version("openenv") | |
| assert openenv.__version__ == installed, (openenv.__version__, installed) | |
| print(f"openenv {installed}") | |
| PY | |
| openenv --help |