|
10 | 10 | run-e2e-tests: |
11 | 11 | runs-on: ubuntu-latest |
12 | 12 | environment: azure-prod |
13 | | - strategy: |
14 | | - matrix: |
15 | | - dependency-version: ["default", "min"] |
16 | | - |
17 | | - name: "E2E Tests (${{ matrix.dependency-version }} deps)" |
18 | | - |
19 | 13 | env: |
20 | 14 | DATABRICKS_SERVER_HOSTNAME: ${{ secrets.DATABRICKS_HOST }} |
21 | 15 | DATABRICKS_HTTP_PATH: ${{ secrets.TEST_PECO_WAREHOUSE_HTTP_PATH }} |
@@ -51,36 +45,14 @@ jobs: |
51 | 45 | uses: actions/cache@v4 |
52 | 46 | with: |
53 | 47 | path: .venv |
54 | | - key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ matrix.dependency-version }}-${{ github.event.repository.name }}-${{ hashFiles('**/poetry.lock') }} |
| 48 | + key: venv-${{ runner.os }}-${{ steps.setup-python.outputs.python-version }}-${{ github.event.repository.name }}-${{ hashFiles('**/poetry.lock') }} |
55 | 49 | #---------------------------------------------- |
56 | 50 | # install dependencies if cache does not exist |
57 | 51 | #---------------------------------------------- |
58 | 52 | - name: Install dependencies |
59 | 53 | run: poetry install --no-interaction --all-extras |
60 | 54 | #---------------------------------------------- |
61 | | - # override with custom dependency versions |
62 | | - #---------------------------------------------- |
63 | | - - name: Install Python tools for custom versions |
64 | | - if: matrix.dependency-version != 'default' |
65 | | - run: poetry run pip install toml packaging |
66 | | - |
67 | | - - name: Generate requirements file for e2e |
68 | | - if: matrix.dependency-version != 'default' |
69 | | - run: | |
70 | | - poetry run python scripts/dependency_manager.py ${{ matrix.dependency-version }} --output requirements-${{ matrix.dependency-version }}-e2e.txt |
71 | | - echo "Generated requirements for ${{ matrix.dependency-version }} versions (E2E):" |
72 | | - cat requirements-${{ matrix.dependency-version }}-e2e.txt |
73 | | -
|
74 | | - - name: Override with custom dependency versions |
75 | | - if: matrix.dependency-version != 'default' |
76 | | - run: poetry run pip install -r requirements-${{ matrix.dependency-version }}-e2e.txt |
77 | | - #---------------------------------------------- |
78 | 55 | # run test suite |
79 | 56 | #---------------------------------------------- |
80 | | - - name: Show installed versions |
81 | | - run: | |
82 | | - echo "=== E2E Dependency Version: ${{ matrix.dependency-version }} ===" |
83 | | - poetry run pip list |
84 | | -
|
85 | 57 | - name: Run e2e tests |
86 | 58 | run: poetry run python -m pytest tests/e2e |
0 commit comments