gci: Add a test for the postgres backend

This commit is contained in:
Christian Decker 2022-12-22 15:41:10 +01:00 committed by Rusty Russell
parent 383fca7d0e
commit b0e3d483e6

View File

@ -203,6 +203,14 @@ jobs:
EXPERIMENTAL_FEATURES: 1 EXPERIMENTAL_FEATURES: 1
TEST_DB_PROVIDER: sqlite3 TEST_DB_PROVIDER: sqlite3
COMPILER: clang COMPILER: clang
# And of course we want to test postgres too
- NAME: postgres
CFG: gcc-dev1-exp1
DEVELOPER: 1
EXPERIMENTAL_FEATURES: 1
COMPILER: gcc
TEST_DB_PROVIDER: postgres
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
@ -236,6 +244,7 @@ jobs:
SLOW_MACHINE: 1 SLOW_MACHINE: 1
PYTEST_PAR: 10 PYTEST_PAR: 10
TEST_DEBUG: 1 TEST_DEBUG: 1
TEST_DB_PROVIDER: ${{ matrix.TEST_DB_PROVIDER }}
run: | run: |
tar -xaf cln-${CFG}.tar.bz2 tar -xaf cln-${CFG}.tar.bz2
poetry run pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS} poetry run pytest tests/ -vvv -n ${PYTEST_PAR} ${PYTEST_OPTS}
@ -290,6 +299,7 @@ jobs:
- name: Install dependencies - name: Install dependencies
run: | run: |
sudo apt-get install -yyq valgrind
pip3 install --user pip wheel poetry pip3 install --user pip wheel poetry
poetry install poetry install
@ -299,7 +309,10 @@ jobs:
- name: Download build - name: Download build
uses: actions/download-artifact@v3 uses: actions/download-artifact@v3
with: with:
name: cln-${ CFG }.tar.bz2 name: cln-gcc-dev1-exp1.tar.bz2
- name: Unpack build
run: tar -xvjf cln-gcc-dev1-exp1.tar.bz2
- name: Test - name: Test
env: env:
@ -307,9 +320,9 @@ jobs:
SLOW_MACHINE: 1 SLOW_MACHINE: 1
TEST_DEBUG: 1 TEST_DEBUG: 1
run: | run: |
tar -xjf cln-${{ matrix.CFG }}.tar.bz2
sed -i 's/VALGRIND=0/VALGRIND=1/g' config.vars sed -i 's/VALGRIND=0/VALGRIND=1/g' config.vars
poetry run pytest tests/ -vvv -n 5 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }} poetry run pytest tests/ -vvv -n 3 ${PYTEST_OPTS} ${{ matrix.PYTEST_OPTS }}
gather: gather:
# A dummy task that depends on the full matrix of tests, and # A dummy task that depends on the full matrix of tests, and