#432: Fixed localhost ip address #1050
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: Test DB Versions with all tests | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
get_exasol_versions: | ||
uses: ./.github/workflows/get_exasol_versions.yml | ||
Check failure on line 11 in .github/workflows/test_db_versions_all_tests.yml GitHub Actions / Test DB Versions with all testsInvalid workflow file
|
||
test-db-versions-all-tests: | ||
needs: get_exasol_versions | ||
strategy: | ||
fail-fast: false | ||
matrix: | ||
exasol_version: ${{fromJson(needs.get_exasol_versions.outputs.matrix)}} | ||
runs-on: ubuntu-latest | ||
name: Run all tests for Exasol ${{ matrix.exasol_version }} | ||
steps: | ||
- name: SCM Checkout | ||
uses: actions/checkout@v4 | ||
- name: Allow Unprivileged User Namespaces | ||
run: sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0 | ||
- name: Setup Python & Poetry Environment | ||
uses: exasol/python-toolbox/.github/actions/[email protected] | ||
with: | ||
python-version: "3.10" | ||
poetry-version: '1.8.2' | ||
- name: Fail, because not all tests are activated | ||
run: | | ||
git fetch | ||
GIT_LOG="$(git log --pretty=oneline --abbrev-commit ${{ github.event.after }} | head -n 1)" | ||
echo "$GIT_LOG" | ||
if [[ "$GIT_LOG" == *"[run all tests]"* ]]; then | ||
echo "All tests activated" | ||
exit 0 | ||
else | ||
echo "Fail, because not all tests are activated" | ||
exit 1 | ||
fi | ||
env: | ||
EXASOL_VERSION: "${{ matrix.exasol_version }}" | ||
# We want to deactivate running all tests only for pull_requests | ||
if: ${{ github.event_name == 'pull_request' }} | ||
- name: Run all tests | ||
run: poetry run nox -s "run-tests(db_version='${{ matrix.exasol_version }}')" |