From c1ce8b5ada7d3980032909abe17d331b446fc39d Mon Sep 17 00:00:00 2001 From: Rick van Hattem Date: Mon, 25 Nov 2024 15:01:41 +0100 Subject: [PATCH] Testing numpy versions separately --- .github/workflows/main.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 7c04ba9..6f6be0d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -12,6 +12,7 @@ jobs: strategy: matrix: python-version: ['3.9', '3.10', '3.11', '3.12'] + numpy-version: ['1', '2'] steps: - uses: actions/checkout@v3 @@ -23,5 +24,14 @@ jobs: run: | python -m pip install --upgrade pip pip install tox tox-gh-actions + - name: python version + env: + TOXENV: "py${{ matrix.python }}-numpy${{ matrix.numpy-version }}" + run: | + TOXENV=${{ env.TOXENV }} + TOXENV=${TOXENV//.} # replace all dots + echo TOXENV=${TOXENV} >> $GITHUB_ENV # update GitHub ENV vars + - name: print env + run: echo ${{ env.TOXENV }} - name: Test with tox run: tox