| name: CI | |
| on: | |
| push: | |
| pull_request: | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4 | |
| - uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5 | |
| with: | |
| python-version: "3.12" | |
| cache: pip | |
| - run: python -m pip install -e '.[dev]' | |
| - run: ruff check . | |
| - run: ruff format --check . | |
| - run: pytest | |
| - run: bash -n scripts/bootstrap-rocm.sh scripts/validate-smoke.sh | |
| - run: python scripts/check-validation.py --help | |
| - run: scripts/bootstrap-rocm.sh --dry-run | |
| - run: python -m build | |
| - run: twine check dist/* | |