From 501aa5ebd0b6dfbfe4c63dc8feb5903222afa743 Mon Sep 17 00:00:00 2001 From: Mario Coray Date: Mon, 25 Mar 2024 13:52:56 +0100 Subject: [PATCH] only run unit tests for all python versions --- .github/workflows/python-code-checks.yml | 27 ++++++++++++++++++++++-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/.github/workflows/python-code-checks.yml b/.github/workflows/python-code-checks.yml index 021c082..7ef3817 100644 --- a/.github/workflows/python-code-checks.yml +++ b/.github/workflows/python-code-checks.yml @@ -10,13 +10,13 @@ on: workflow_dispatch: jobs: - check_python_code: + run_unit_tests: runs-on: ubuntu-22.04 strategy: matrix: python-version: ["3.9", "3.10", "3.11", "3.12"] - name: Running Python code checks with Python ${{ matrix.python-version }} + name: Running unit tests with Python ${{ matrix.python-version }} steps: - uses: actions/checkout@v3 - name: Set up Python ${{ matrix.python-version }} @@ -32,6 +32,29 @@ jobs: run: | pipenv --python ${{ matrix.python-version }} install --dev + - name: Run unit tests + run: | + pipenv run test + + check_python_code: + runs-on: ubuntu-22.04 + + name: Running Python code checks + steps: + - uses: actions/checkout@v3 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.11" + cache: "pipenv" + - name: Install pipenv + run: | + python -m pip install --upgrade pip pipenv + python --version; python -m pip --version; pipenv --version + - name: Setup project with pipenv + run: | + pipenv --python "3.11" install --dev + - name: Check code style run: | pipenv run format_check