Skip to content

Commit

Permalink
Merge branch 'ci/add-automatic-testing' of into unit_test
Browse files Browse the repository at this point in the history
  • Loading branch information
fullbat committed Mar 14, 2024
2 parents 88f3935 + ea6e9e7 commit 342c425
Show file tree
Hide file tree
Showing 2 changed files with 50 additions and 1 deletion.
49 changes: 49 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Run tests
run-name: Run tests - ${{ github.sha }}
on: push
jobs:
run_test:
strategy:
matrix:
# NOTE: Python 3.12 is not supported yet
config:
[
{os: ubuntu-latest, py: '3.8'},
{os: ubuntu-latest, py: '3.9'},
{os: ubuntu-latest, py: '3.10'},
{os: ubuntu-latest, py: '3.11'},
# {os: ubuntu-latest, py: '3.12'},
{os: macos-latest, py: '3.8'},
{os: macos-latest, py: '3.9'},
{os: macos-latest, py: '3.10'},
{os: macos-latest, py: '3.11'},
# {os: macos-latest, py: '3.12'},
{os: macos-14, py: '3.10'},
{os: macos-14, py: '3.11'},
# {os: macos-14, py: '3.12'}
]
name: Python ${{ matrix.config.py }} on ${{ matrix.config.os }}
runs-on: ${{ matrix.config.os }}
steps:
- name: Checkout
uses: actions/[email protected]
- name: Download data
working-directory: tests
run: |
curl -L -O https://github.com/daducci/COMMIT/wiki/files/demo01_data.zip
curl -L -O https://github.com/daducci/COMMIT/wiki/files/demo01_fibers.tck
7z x demo01_data.zip
mv demo01_fibers.tck demo01_data
- name: Set up Python ${{ matrix.config.py }}
uses: actions/[email protected]
with:
python-version: ${{ matrix.config.py }}
- name: Install dmri-commit
run: pip install . --no-cache-dir --force-reinstall
- name: Run tests
working-directory: tests
run: |
echo "Run tests"
- name: Done
run: |
echo "All tests passed!"
2 changes: 1 addition & 1 deletion commit/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
# Format version as expected by setup.py (string of form "X.Y.Z")
_version_major = 2
_version_minor = 1
_version_micro = 0
_version_micro = 1
_version_extra = '' #'.dev'
__version__ = "%s.%s.%s%s" % (_version_major,_version_minor,_version_micro,_version_extra)

Expand Down

0 comments on commit 342c425

Please sign in to comment.