From b09d7c038101e3d0a00bd3d9e75f24cb5e3c4e15 Mon Sep 17 00:00:00 2001 From: Joris Vincent Date: Mon, 13 Mar 2023 09:03:57 +0100 Subject: [PATCH] Reorganize GHA yml a bit - Upgrade pip, setuptools before installing deps - Run nox through pipx --- .github/workflows/test.yml | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index b51e37d3..e20bc65b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -18,11 +18,13 @@ jobs: python-version: ${{ matrix.python_version }} architecture: x64 - - name: Install nox - run: pip install nox - name: Install (testing) requirements - run: pip install -r requirements.txt + run: | + python -m pip install --upgrade pip setuptools + pip install -r requirements.txt - name: Install stimupy to be tested - run: pip install . - - name: Run tests for $ {{ matrix.python_version }} through nox - run: nox --non-interactive --error-on-missing-interpreter --session "tests-${{ matrix.python_version }}" -- --full-trace + run: | + pip install . + - name: Run tests for ${{ matrix.python_version }} through nox + run: | + pipx run nox --non-interactive --error-on-missing-interpreter --session "tests-${{ matrix.python_version }}"