docs: keep TRT README public-facing #41
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: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| lint: | |
| name: Lint | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.12" | |
| - name: Cache pip | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: lint-${{ hashFiles('pyproject.toml') }} | |
| - run: pip install ruff | |
| - name: ruff check | |
| run: ruff check semblend/ semblend_core/ synapse_kv_connector/ | |
| - name: ruff format | |
| run: ruff format --check semblend/ semblend_core/ synapse_kv_connector/ | |
| test: | |
| name: Test (Python ${{ matrix.python-version }}) | |
| runs-on: ubuntu-latest | |
| needs: lint | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Cache pip | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: test-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }} | |
| - name: Install | |
| run: pip install -e ".[dev]" | |
| - name: Run tests | |
| run: | | |
| pytest tests/ \ | |
| --ignore=tests/integration \ | |
| -v --tb=short \ | |
| --junit-xml=test-results-${{ matrix.python-version }}.xml | |
| - name: Upload test results | |
| if: always() | |
| uses: actions/upload-artifact@v4 | |
| with: | |
| name: test-results-${{ matrix.python-version }} | |
| path: test-results-${{ matrix.python-version }}.xml |