Repository navigation
Warn when Durable Functions dependencies allow major upgrades #1011
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: | |
| 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@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.0 | |
| with: | |
| python-version: "3.15" | |
| - name: Install dependencies | |
| run: | | |
| python -m pip install --upgrade "pip>=25.1" | |
| python -m pip install --group nox | |
| - name: Run lint checks | |
| run: nox -s lint | |
| run-tests: | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: ["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@6d4fd22b20465ccc0f7354476588e8df7c9ca0e0 # v7.1.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>=25.1" | |
| python -m pip install --group nox | |
| - name: Pytest unit tests | |
| run: nox -s core_tests-${{ matrix.python-version }} |