Skip to content

Suggestion: restore environment variable if found, and new exec_crate… #82

Suggestion: restore environment variable if found, and new exec_crate…

Suggestion: restore environment variable if found, and new exec_crate… #82

---
# yamllint disable rule:line-length
name: Integration tests
# yamllint disable-line rule:truthy
on:
push:
paths:
- '**.py'
- .github/workflows/integration-tests.yml
- github_action_scripts/docker_db_setup.sh
- github_action_scripts/install_wkhtmltopdf.sh
- github_action_scripts/integration_tests.sh
- github_action_scripts/python_setup.sh
jobs:
run-integration-tests:
runs-on: ubuntu-latest
strategy:
matrix:
# add "postgres" when supported
engine: ["mysql", "sqlserver"]
include:
- engine: mysql
port: 3306
- engine: sqlserver
port: 1433
# - engine: postgres
# port: 5432
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.10"
- name: Install wkhtmltopdf
run: |
set -euxo pipefail
${GITHUB_WORKSPACE}/github_action_scripts/install_wkhtmltopdf.sh
- name: Run integration tests
run: |
set -euxo pipefail
${GITHUB_WORKSPACE}/github_action_scripts/python_setup.sh
${GITHUB_WORKSPACE}/github_action_scripts/docker_db_setup.sh ${{ matrix.engine }} ${{ matrix.port }}
${GITHUB_WORKSPACE}/github_action_scripts/integration_tests.sh ${{ matrix.engine }}