Repository navigation
Add deterministic async/await orchestrators across all three Python packages #914
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: Durable Task SDK (durabletask) | |
| on: | |
| push: | |
| branches: | |
| - "main" | |
| tags: | |
| - "v*" # Only run for tags starting with "v" | |
| pull_request: | |
| branches: | |
| - "main" | |
| permissions: | |
| contents: read | |
| jobs: | |
| async-runtime-windows: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"] | |
| runs-on: windows-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Install runtime test dependencies | |
| run: python -m pip install -r requirements.txt -e . | |
| - name: Check asyncio, AnyIO, replay, and dispatch cleanup | |
| run: >- | |
| python -m pytest | |
| tests\durabletask\test_asyncio_orchestrators.py | |
| tests\durabletask\test_coroutine_orchestrators.py | |
| tests\durabletask\test_pydantic_ai_orchestrator.py | |
| tests\durabletask\test_orchestration_generator_cleanup.py | |
| tests\durabletask\test_orchestration_dispatch_recovery.py | |
| -q | |
| lint-and-unit-tests: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Python 3.15 | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: "3.15" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install nox | |
| - name: Run lint checks | |
| run: nox -s lint | |
| run-tests: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["3.10", "3.11", "3.12", "3.13", "3.14", "3.15"] | |
| needs: lint-and-unit-tests | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Python ${{ matrix.python-version }} | |
| uses: actions/setup-python@5fda3b95a4ea91299a34e894583c3862153e4b97 # v7.0.0 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| - name: Set up Node.js (needed for Azurite) | |
| uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 | |
| with: | |
| node-version: '22.x' | |
| - name: Cache npm | |
| uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 | |
| with: | |
| path: ~/.npm | |
| key: ${{ runner.os }}-npm-azurite | |
| - name: Install Azurite | |
| run: npm install -g azurite@latest | |
| - name: Install Nox | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install nox | |
| - name: Pytest unit tests | |
| run: nox -s core_tests-${{ matrix.python-version }} |