|
1 |
| -# This workflow will install Python dependencies, run tests and lint with a variety of Python versions |
2 |
| -# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python |
3 |
| - |
4 |
| -name: Build Validation |
5 |
| - |
6 |
| -on: |
7 |
| - push: |
8 |
| - branches: [ "main" ] |
9 |
| - pull_request: |
10 |
| - branches: [ "main" ] |
11 |
| - merge_group: |
12 |
| - |
13 |
| -jobs: |
14 |
| - build: |
15 |
| - |
16 |
| - runs-on: ubuntu-latest |
17 |
| - strategy: |
18 |
| - fail-fast: false |
19 |
| - matrix: |
20 |
| - python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] |
21 |
| - |
22 |
| - steps: |
23 |
| - - uses: actions/checkout@v4 |
24 |
| - - name: Set up Python ${{ matrix.python-version }} |
25 |
| - uses: actions/setup-python@v5 |
26 |
| - with: |
27 |
| - python-version: ${{ matrix.python-version }} |
28 |
| - - name: Install dependencies |
29 |
| - run: | |
30 |
| - python -m pip install --upgrade pip |
31 |
| - pip install flake8 pytest |
32 |
| - pip install -r requirements.txt |
33 |
| - - name: Lint with flake8 |
34 |
| - run: | |
35 |
| - flake8 . --count --show-source --statistics --exit-zero |
36 |
| - - name: Pytest unit tests |
37 |
| - run: | |
38 |
| - pytest -m "not e2e" --verbose |
39 |
| -
|
40 |
| - # Sidecar for running e2e tests requires Go SDK |
41 |
| - - name: Install Go SDK |
42 |
| - uses: actions/setup-go@v5 |
43 |
| - with: |
44 |
| - go-version: 'stable' |
45 |
| - |
46 |
| - # Install and run the durabletask-go sidecar for running e2e tests |
47 |
| - - name: Pytest e2e tests |
48 |
| - run: | |
49 |
| - go install github.com/microsoft/durabletask-go@main |
50 |
| - durabletask-go --port 4001 & |
51 |
| - pytest -m "e2e" --verbose |
| 1 | +# This workflow will install Python dependencies, run tests and lint with a variety of Python versions |
| 2 | +# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python |
| 3 | + |
| 4 | +name: Build Validation |
| 5 | + |
| 6 | +on: |
| 7 | + push: |
| 8 | + branches: [ "main" ] |
| 9 | + pull_request: |
| 10 | + branches: [ "main" ] |
| 11 | + merge_group: |
| 12 | + |
| 13 | +jobs: |
| 14 | + build: |
| 15 | + |
| 16 | + runs-on: ubuntu-latest |
| 17 | + strategy: |
| 18 | + fail-fast: false |
| 19 | + matrix: |
| 20 | + python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"] |
| 21 | + |
| 22 | + steps: |
| 23 | + - uses: actions/checkout@v4 |
| 24 | + - name: Set up Python ${{ matrix.python-version }} |
| 25 | + uses: actions/setup-python@v5 |
| 26 | + with: |
| 27 | + python-version: ${{ matrix.python-version }} |
| 28 | + - name: Install durabletask dependencies |
| 29 | + run: | |
| 30 | + python -m pip install --upgrade pip |
| 31 | + pip install flake8 pytest |
| 32 | + pip install -r requirements.txt |
| 33 | + - name: Install durabletask-azuremanaged dependencies |
| 34 | + working-directory: examples/dts |
| 35 | + run: | |
| 36 | + python -m pip install --upgrade pip |
| 37 | + pip install -r requirements.txt |
| 38 | + - name: Lint with flake8 |
| 39 | + run: | |
| 40 | + flake8 . --count --show-source --statistics --exit-zero |
| 41 | + - name: Pytest unit tests |
| 42 | + working-directory: tests/durabletask |
| 43 | + run: | |
| 44 | + pytest -m "not e2e and not dts" --verbose |
| 45 | +
|
| 46 | + # Sidecar for running e2e tests requires Go SDK |
| 47 | + - name: Install Go SDK |
| 48 | + uses: actions/setup-go@v5 |
| 49 | + with: |
| 50 | + go-version: 'stable' |
| 51 | + |
| 52 | + # Install and run the durabletask-go sidecar for running e2e tests |
| 53 | + - name: Pytest e2e tests |
| 54 | + working-directory: tests/durabletask |
| 55 | + run: | |
| 56 | + go install github.com/microsoft/durabletask-go@main |
| 57 | + durabletask-go --port 4001 & |
| 58 | + pytest -m "e2e and not dts" --verbose |
0 commit comments