Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Enable GitHub Actions #11

Merged
merged 1 commit into from
Aug 30, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 44 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Test suite

on:
push:
branches:
- master
tags:
- "*"
pull_request:
branches:
- master

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

# Commented sections to be uncommented once CI is active
jobs:
test:
runs-on: ubuntu-latest
# strategy:
# matrix:
# python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
# requires: ["", "requirements.txt"]

steps:
- name: Checkout repo
uses: actions/checkout@v3
# - name: Set up Python ${{ matrix.python-version }}
# uses: conda-incubator/setup-miniconda@v2
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm going to try using miniconda instead of the standard Python setup, as conda still allows Python 2 to be installed. It will also allow us to install the FSL tools needed.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See #12 for removing the fsl dependency, it is only used for fslval / fslorient.

# with:
# python-version: ${{ matrix.python-version }}
# - name: Update pip and pytest
# run: python -m pip install --upgrade pip pytest
# - name: Install requires
# run: |
# python -m pip install -r ${{ matrix.requires }}
# if: ${{ matrix.requires }}
# - name: Install gradunwarp
# run: |
# python -m pip install .
# - name: Test
# run: pytest --pyargs gradunwarp
# working-directory: /tmp