Flush context run command early #9
Workflow file for this run
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: Unit Tests | |
| on: | |
| pull_request: | |
| workflow_dispatch: | |
| push: | |
| branches: | |
| - main | |
| permissions: | |
| contents: read | |
| checks: write | |
| pull-requests: write | |
| jobs: | |
| restate-sdk-unit-tests: | |
| name: "Run Unit Tests (Python ${{ matrix.python }})" | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| python: ["3.11", "3.12"] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: extractions/setup-just@v2 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ matrix.python }} | |
| - name: Build Rust module | |
| uses: PyO3/maturin-action@v1 | |
| with: | |
| args: --out dist --interpreter python${{ matrix.python }} | |
| sccache: "true" | |
| container: off | |
| - run: pip install -r requirements.txt | |
| - run: pip install dist/* | |
| - name: Run Unit Tests | |
| run: python -m pytest tests/ -v |