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