duttonw PR FIX: QOLDEV-989 fix max_parallel_workers_per_gather to 0 when vCPU less than 4 on 609/merge verifying Staging environment configuration #778
This file contains 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: Tests Staging | |
run-name: "${{ github.actor }} PR ${{ github.event.pull_request.title }} on ${{ github.ref_name }} verifying Staging environment configuration" | |
on: | |
pull_request: | |
branches: | |
- master | |
- develop | |
jobs: | |
test: | |
strategy: | |
fail-fast: true | |
matrix: | |
application: [OpenData, Publications] | |
python-version: [py3] | |
target_environment: [STAGING] | |
behave-tag: [smoke, unauthenticated, multi_plugin, app, authenticated] | |
name: ${{ matrix.application }} ${{ matrix.target_environment }} ${{ matrix.python-version }} ${{ matrix.behave-tag }} infrastructure build | |
runs-on: ubuntu-latest | |
container: drevops/ci-runner:23.12.0 | |
env: | |
VARS_TYPE: ${{ matrix.application }} | |
DEPLOY_ENV: ${{ matrix.target_environment }} | |
PYTHON_VERSION: ${{ matrix.python-version }} | |
BEHAVE_TAG: ${{ matrix.behave-tag }} | |
steps: | |
# Patch https://github.com/actions/runner/issues/863 | |
- name: Preserve $HOME set in the container | |
run: echo HOME=/root >> "$GITHUB_ENV" | |
- uses: actions/checkout@v4 | |
timeout-minutes: 2 | |
- name: Build | |
run: bin/build.sh | |
timeout-minutes: 20 | |
- name: Test lint | |
run: bin/test-lint.sh | |
timeout-minutes: 30 | |
- name: Unit tests | |
if: ${{ matrix.behave-tag == 'smoke' }} | |
run: bin/test.sh | |
timeout-minutes: 40 | |
- name: Test BDD | |
run: bin/test-bdd.sh | |
timeout-minutes: 60 | |
- name: Retrieve logs | |
if: always() | |
run: bin/get-logs.sh | |
timeout-minutes: 1 | |
- name: Retrieve screenshots | |
if: always() | |
run: bin/process-artifacts.sh | |
timeout-minutes: 1 | |
- name: Upload screenshots | |
if: failure() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.application }} ${{ matrix.target_environment }} ${{ matrix.python-version }} ${{ matrix.behave-tag }} screenshots | |
path: /tmp/artifacts/behave/screenshots | |
timeout-minutes: 1 |