|
8 | 8 | required: true |
9 | 9 | FIREBOLT_CLIENT_SECRET_STG_NEW_IDN: |
10 | 10 | required: true |
| 11 | + inputs: |
| 12 | + engine-version: |
| 13 | + description: 'Engine version to use for integration tests' |
| 14 | + required: false |
| 15 | + type: string |
| 16 | + default: '' |
| 17 | + token: |
| 18 | + description: 'GitHub token if called from another workflow' |
| 19 | + required: false |
| 20 | + type: string |
11 | 21 |
|
12 | 22 | jobs: |
13 | 23 | integration-tests: |
14 | 24 | runs-on: ubuntu-latest |
15 | 25 | steps: |
16 | 26 | - name: Check out code |
17 | 27 | uses: actions/checkout@v2 |
| 28 | + with: |
| 29 | + repository: firebolt-db/firebolt-sqlalchemy |
18 | 30 |
|
19 | 31 | - name: Set up Python 3.8 |
20 | 32 | uses: actions/setup-python@v5 |
|
24 | 36 | - name: Install dependencies |
25 | 37 | run: | |
26 | 38 | python -m pip install --upgrade pip |
27 | | - pip install ".[dev]" |
| 39 | + python -m pip install ".[dev]" |
28 | 40 |
|
29 | 41 | - name: Setup database and engine |
30 | 42 | id: setup |
|
53 | 65 | FIREBOLT_BASE_URL: "api.staging.firebolt.io" |
54 | 66 | ACCOUNT_NAME: ${{ vars.FIREBOLT_ACCOUNT }} |
55 | 67 | run: | |
56 | | - pytest --last-failed -o log_cli=true -o log_cli_level=INFO tests/integration |
| 68 | + pytest --last-failed -o log_cli=true -o log_cli_level=INFO tests/integration --alluredir=allure-results |
57 | 69 |
|
58 | 70 | - name: Save failed tests |
59 | 71 | id: cache-tests-save |
|
63 | 75 | path: | |
64 | 76 | .pytest_cache/v/cache/lastfailed |
65 | 77 | key: ${{ steps.cache-tests-restore.outputs.cache-primary-key }} |
| 78 | + |
| 79 | + # Need to pull the pages branch in order to fetch the previous runs |
| 80 | + - name: Get Allure history |
| 81 | + uses: actions/checkout@v4 |
| 82 | + if: always() |
| 83 | + continue-on-error: true |
| 84 | + with: |
| 85 | + ref: gh-pages |
| 86 | + path: gh-pages |
| 87 | + |
| 88 | + - name: Allure Report |
| 89 | + uses: firebolt-db/action-allure-report@v1 |
| 90 | + if: always() |
| 91 | + with: |
| 92 | + github-key: ${{ inputs.token || secrets.GITHUB_TOKEN }} |
| 93 | + test-type: integration |
| 94 | + allure-dir: allure-results |
| 95 | + pages-branch: gh-pages |
| 96 | + repository-name: firebolt-sqlalchemy |
0 commit comments