Skip to content

Commit

Permalink
Merge pull request #61 from Remi-Gau/gha_tests
Browse files Browse the repository at this point in the history
[MAINT] add github action worflow for tests
  • Loading branch information
cmaumet committed Sep 20, 2023
2 parents f6fd1fc + 6e856c8 commit 481264c
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 19 deletions.
14 changes: 14 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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
43 changes: 43 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -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

19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

0 comments on commit 481264c

Please sign in to comment.