Skip to content

Commit

Permalink
test tensorial topologies with Github Actions
Browse files Browse the repository at this point in the history
  • Loading branch information
joostvanzwieten committed Sep 20, 2021
1 parent cfece7f commit 3eb6578
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}
Expand All @@ -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
Expand Down
2 changes: 1 addition & 1 deletion nutils/topology.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 3eb6578

Please sign in to comment.