diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..e73f065 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,14 @@ +--- +# Documentation +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file +version: 2 +updates: +- package-ecosystem: github-actions + directory: / + schedule: + interval: monthly + +- package-ecosystem: gitsubmodule + directory: / + schedule: + interval: monthly diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..da06a92 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,43 @@ +--- +name: Test + +on: + push: + branches: ['master'] + pull_request: + branches: ['*'] + +concurrency: + group: ${{ github.workflow }}-${{ github.ref }} + cancel-in-progress: true + +jobs: + test: + + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, macOS-latest, windows-latest] + python-version: ['3.7', '3.8', '3.9', '3.10', '3.11'] + fail-fast: false + + steps: + + - name: Clone repo + uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + pip install --upgrade setuptools + pip install -r requirements.txt + python setup.py install # install nidmresults from sources + pip install ddt + + - name: Run tests + run: python test/test_reader.py + diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 361ebc0..0000000 --- a/.travis.yml +++ /dev/null @@ -1,19 +0,0 @@ -language: python -# Enable Travis container-based infrastructure -sudo: false -cache: - directories: - - test/data -python: - - "3.5" - - "2.7" -# command to install dependencies, e.g. pip install -r requirements.txt --use-mirrors -install: -# Avoid "html5lib requires setuptools version 18.5" error - - pip install --upgrade setuptools - - pip install -r requirements.txt - - python setup.py install # install nidmresults from sources - - pip install ddt -script: - - python test/test_reader.py - \ No newline at end of file