ThrawnCA on github-224-xloader-status-badges verifying Dev environment configuration #1587
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 Dev | |
run-name: "${{ github.actor }} on ${{ github.ref_name }} verifying Dev environment configuration" | |
on: | |
push: | |
schedule: | |
- cron: "0 0 1 * *" | |
jobs: | |
test: | |
strategy: | |
fail-fast: true | |
matrix: | |
application: [OpenData, Publications] | |
python-version: [py3] | |
target_environment: [DEV] | |
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 |