From 0fc2c3e0338b919942e0eab1cb11496c5c431a50 Mon Sep 17 00:00:00 2001 From: czoido Date: Tue, 24 Sep 2024 11:51:18 +0200 Subject: [PATCH] update name --- .github/workflows/ci-pipeline.yml | 22 ++++++++++------------ 1 file changed, 10 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci-pipeline.yml b/.github/workflows/ci-pipeline.yml index 533f6cdf906..36112a9038b 100644 --- a/.github/workflows/ci-pipeline.yml +++ b/.github/workflows/ci-pipeline.yml @@ -60,6 +60,8 @@ jobs: strategy: matrix: python-version: ['3.12.3', '3.9.2', '3.8.6', '3.6.15'] + test-type: ['unittests', 'integration', 'functional'] + name: Python ${{ matrix.python-version }} - ${{ matrix.test-type }} steps: - name: Checkout code uses: actions/checkout@v3 @@ -83,17 +85,13 @@ jobs: pip install -r conans/requirements_server.txt pip install meson - - name: Run unit tests + - name: Run tests shell: bash run: | - pytest test/unittests --durations=20 -n 4 - - - name: Run integration tests - shell: bash - run: | - pytest test/integration --durations=20 -n 4 - - - name: Run functional tests - shell: bash - run: | - pytest test/functional --durations=20 -n 4 + if [ "${{ matrix.test-type }}" == "unittests" ]; then + pytest test/unittests --durations=20 -n 4 + elif [ "${{ matrix.test-type }}" == "integration" ]; then + pytest test/integration --durations=20 -n 4 + elif [ "${{ matrix.test-type }}" == "functional" ]; then + pytest test/functional --durations=20 -n 4 + fi