diff --git a/.github/workflows/hatch-matrix.json b/.github/workflows/hatch-matrix.json new file mode 100644 index 0000000..141d1bb --- /dev/null +++ b/.github/workflows/hatch-matrix.json @@ -0,0 +1,36 @@ +{ + "include": [ + { + "hatch-env-name": "test.py3.10-numpy-version=1", + "python-version": "3.10" + }, + { + "hatch-env-name": "test.py3.10-numpy-version=2", + "python-version": "3.10" + }, + { + "hatch-env-name": "test.py3.11-numpy-version=1", + "python-version": "3.11" + }, + { + "hatch-env-name": "test.py3.11-numpy-version=2", + "python-version": "3.11" + }, + { + "hatch-env-name": "test.py3.12-numpy-version=1", + "python-version": "3.12" + }, + { + "hatch-env-name": "test.py3.12-numpy-version=2", + "python-version": "3.12" + }, + { + "hatch-env-name": "test.py3.13-numpy-version=1", + "python-version": "3.13" + }, + { + "hatch-env-name": "test.py3.13-numpy-version=2", + "python-version": "3.13" + } + ] +} diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a5d6950..d53f80b 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -6,6 +6,14 @@ on: branches: ["main", "v1"] jobs: + prepare-matrix: + runs-on: ubuntu-latest + outputs: + matrix: ${{ steps.set-matrix.outputs.matrix }} + steps: + - name: Set matrix + id: set-matrix + run: echo "matrix=$(cat .github/workflows/hatch-matrix.json | jq -c )" >> $GITHUB_OUTPUT test: runs-on: ubuntu-latest strategy: