Fix behave tests on GH actions MacOS (#2515)

- the new MacOS doesn't play well with old go binaries (bump etcd)
- use brew to install Postgres and expect (unbuffer, to make behave output colorful) and use the latest version
- upload failed logs instead of grepping them to stdout
This commit is contained in:
Alexander Kukushkin
2023-01-05 12:32:39 +01:00
committed by GitHub
parent 442bd3f434
commit baaf187c81
3 changed files with 24 additions and 16 deletions
+12 -2
View File
@@ -92,8 +92,8 @@ jobs:
runs-on: ${{ fromJson('{"ubuntu":"ubuntu-20.04","windows":"windows-latest","macos":"macos-latest"}')[matrix.os] }}
env:
DCS: ${{ matrix.dcs }}
ETCDVERSION: 3.3.13
PGVERSION: 12.1-1 # for windows and macos
ETCDVERSION: 3.4.23
PGVERSION: 15.1-1 # for windows and macos
strategy:
fail-fast: false
matrix:
@@ -133,6 +133,16 @@ jobs:
run: python .github/workflows/install_deps.py
- name: Run behave tests
run: python .github/workflows/run_tests.py
- name: Upload logs if behave failed
uses: actions/upload-artifact@v3
if: failure()
with:
name: behave-${{ matrix.os }}-${{ matrix.dcs }}-${{ matrix.python-version }}-logs
path: |
features/output/*_failed/*postgres?.*
features/output/*
if-no-files-found: error
retention-days: 5
- uses: actions/setup-python@v4
with:
python-version: '3.10'