From c1b7c03feda7afea25836109928cca76869d5cde Mon Sep 17 00:00:00 2001 From: fabiocat93 Date: Tue, 17 Sep 2024 20:34:26 +0200 Subject: [PATCH] playing with matrix again ## --- .github/workflows/macos_tests.yaml | 2 +- .github/workflows/ubuntu_tests.yaml | 21 ++++++--------------- 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/macos_tests.yaml b/.github/workflows/macos_tests.yaml index 4ea9f45..a52ac34 100644 --- a/.github/workflows/macos_tests.yaml +++ b/.github/workflows/macos_tests.yaml @@ -30,7 +30,7 @@ jobs: virtualenvs-in-project: true - name: Install dependencies with Poetry run: | - poetry install --no-interaction + poetry install --no-interaction --no-root shell: bash - name: Run unit tests run: poetry run pytest diff --git a/.github/workflows/ubuntu_tests.yaml b/.github/workflows/ubuntu_tests.yaml index ca7de0f..f115c2a 100644 --- a/.github/workflows/ubuntu_tests.yaml +++ b/.github/workflows/ubuntu_tests.yaml @@ -53,32 +53,23 @@ jobs: run: | python --version which python - - name: Check if Poetry is installed - id: check-poetry - run: | - if command -v poetry &> /dev/null; then - echo "::set-output name=poetry_installed::true" - else - echo "::set-output name=poetry_installed::false" - fi - name: Install Poetry - if: steps.check-poetry.outputs.poetry_installed == 'false' uses: snok/install-poetry@v1 with: - poetry-version: latest + poetry-version: 1.7.1 - name: Check space run: | echo "available space: " df -h - - name: Check poetry version - run: | - poetry env info - poetry --version - name: Install dependencies with Poetry run: | poetry env use ${{ matrix.python-version }} - poetry install + poetry install --no-interaction --no-root shell: bash + - name: Check poetry version + run: | + poetry env info + poetry --version - name: Display NVIDIA SMI details run: | poetry run nvidia-smi