From a5ef981e64909970f600a59a9400e5acac6a1884 Mon Sep 17 00:00:00 2001 From: Sidney Richards Date: Wed, 4 Sep 2024 15:13:50 +0200 Subject: [PATCH] Run openklant client tests in CI --- .github/workflows/ci.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 862a079a30..94e4fa904d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest strategy: matrix: - test-type: [main, elastic] + test-type: [main, elastic, openklant] services: postgres: @@ -70,6 +70,8 @@ jobs: --exclude-tag=elastic elif [ "${{ matrix.test-type }}" = "elastic" ]; then coverage run -p src/manage.py test src --tag=elastic --exclude-tag=e2e + elif [ "${{ matrix.test-type }}" = "openklant" ]; then + pytest --block-network src/openklant2 else echo "Error: Unknown test type '${{ matrix.test-type }}'" exit 1 @@ -95,7 +97,7 @@ jobs: - name: Set up Python uses: actions/setup-python@v5 with: - python-version: "3.11" + python-version: '3.11' - name: Install coverage.py # We only need coverage, but we need to match the version that was used # to generate the coverage files. Grab it from the dependencies. @@ -166,8 +168,7 @@ jobs: uses: actions/cache@v3 with: path: /home/runner/.cache/ms-playwright - key: - ${{ runner.os }}-${{ matrix.browser }}-playwright-${{ hashFiles('requirements/ci.txt') }} + key: ${{ runner.os }}-${{ matrix.browser }}-playwright-${{ hashFiles('requirements/ci.txt') }} - name: Install playwright deps run: playwright install --with-deps ${{ matrix.browser }}