From 3eb6578bebee87c15808092572c2e92b9d10d7ec Mon Sep 17 00:00:00 2001 From: Joost van Zwieten Date: Wed, 28 Jul 2021 13:06:51 +0200 Subject: [PATCH] test tensorial topologies with Github Actions --- .github/workflows/test.yaml | 5 ++++- nutils/topology.py | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml index 30e477433..940bec4f4 100644 --- a/.github/workflows/test.yaml +++ b/.github/workflows/test.yaml @@ -33,7 +33,7 @@ jobs: if-no-files-found: error test: needs: build-python-package - name: 'Test os: ${{ matrix.os }}, py: ${{ matrix.python-version }}, matrix: ${{ matrix.matrix-backend }}, nprocs: ${{ matrix.nprocs }}, numpy: ${{ matrix.numpy-version }}' + name: 'Test os: ${{ matrix.os }}, py: ${{ matrix.python-version }}, matrix: ${{ matrix.matrix-backend }}, nprocs: ${{ matrix.nprocs }}, numpy: ${{ matrix.numpy-version }}, tensorial: ${{ matrix.tensorial }}' runs-on: ${{ matrix.os }} strategy: matrix: @@ -56,6 +56,8 @@ jobs: - {os: ubuntu-latest , python-version: 3.9, matrix-backend: numpy, nprocs: 2, numpy-version: latest} # numpy-version - {os: ubuntu-latest , python-version: 3.8, matrix-backend: numpy, nprocs: 1, numpy-version: 1.16 } + # tensorial + - {os: ubuntu-latest , python-version: 3.9, matrix-backend: numpy, nprocs: 1, numpy-version: latest, tensorial: test} fail-fast: false env: NUTILS_MATRIX: ${{ matrix.matrix-backend }} @@ -65,6 +67,7 @@ jobs: MKL_DYNAMIC: FALSE MKL_NUM_THREADS: 1 PYTHONHASHSEED: 0 + NUTILS_TENSORIAL: ${{ matrix.tensorial }} steps: - name: Checkout uses: actions/checkout@v2 diff --git a/nutils/topology.py b/nutils/topology.py index eae573c54..6def54f97 100644 --- a/nutils/topology.py +++ b/nutils/topology.py @@ -884,7 +884,7 @@ def basis_discont(self, degree: int) -> function.Basis: class _TensorialTopology(Topology): - def take_unchecked(self, __indices: numpy.ndarray, __idim: int, __ndim: int) -> Topology: + def take_unchecked(self, __indices: numpy.ndarray) -> Topology: raise SkipTest('`{}` does not implement `Topology.take_unchecked`'.format(type(self).__qualname__)) def __and__(self, other: Any) -> Topology: