diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml new file mode 100644 index 000000000..9c6398059 --- /dev/null +++ b/.github/workflows/unittests.yml @@ -0,0 +1,38 @@ +name: NIDM-specs unit tests + +on: [push, pull_request] + +defaults: + run: + shell: bash + +jobs: + build: + strategy: + matrix: + os: [ubuntu-latest, macos-latest, windows-latest] + python-version: [2.7] + fail-fast: false + runs-on: ${{ matrix.os }} + + + steps: + - uses: actions/checkout@v2 + - name: Set up Python ${{ matrix.python-version }} on ${{ matrix.os }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python-version }} + + - name: Update build tools + run: python -m pip install --upgrade pip setuptools + + - name: Install NIDM Results repo + run: pip install git+git://github.com/incf-nidash/nidmresults.git + + - name: Install dependencies + run: pip install -r requirements.txt + + - name: unit tests + run: | + python -m unittest discover -s ./nidm/nidm-results/test/ -p '[t|T]est*.py' + python test/test_specifications.py \ No newline at end of file diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 1fadee0f3..000000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: python -# use Travis container-based infrastructure -sudo: false -python: - - "2.7" -# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors -install: - - pip install --upgrade setuptools - # Install nidmresults python library from GitHub repo - # - pip install nidmresults - - pip install git+git://github.com/incf-nidash/nidmresults.git - - pip install -r requirements.txt -# command to run tests, e.g. python setup.py test -script: -- python -m unittest discover -s ./nidm/nidm-results/test/ -p '[t|T]est*.py' -- python test/test_specifications.py -- cat debug.log -# Use new infrastructure -sudo: false \ No newline at end of file