Skip to content

Commit d0a996f

Browse files
committed
Initial CI config - will fail tests though
1 parent 654610c commit d0a996f

File tree

3 files changed

+38
-3
lines changed

3 files changed

+38
-3
lines changed

.github/workflows/unit_test.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Unit tests
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
8+
runs-on: ${{ matrix.os }}
9+
10+
strategy:
11+
matrix:
12+
os: [ubuntu-latest, macos-latest, windows-latest]
13+
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"]
14+
# exclude:
15+
# - os: macos-latest
16+
# python-version: "3.7"
17+
# - os: windows-latest
18+
# python-version: "3.7"
19+
steps:
20+
- uses: actions/checkout@v3
21+
- name: Set up Python
22+
uses: actions/setup-python@v4
23+
with:
24+
python-version: ${{ matrix.python-version }}
25+
# You can test your matrix by printing the current Python version
26+
- name: Display Python version
27+
run: python -c "import sys; print(sys.version)"
28+
- name: Install dependencies
29+
run: |
30+
python -m pip install --upgrade pip
31+
pip install -r requirements.txt
32+
- name: Test with pytest
33+
run: |
34+
pip install pytest pytest-cov
35+
pytest tests.py --doctest-modules --junitxml=junit/test-results.xml --cov=com --cov-report=xml --cov-report=html

doc/create_local_copy_of_repository.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,6 @@ The instructions outlined below shows a few (but far from all) ways for creating
66
*to be added*
77

88
# Alternative approach
9-
*to be added*
9+
- Create a github user
10+
- `git clone <repository name>`
11+
- e.g. `git clone git@github.com:DKuppens/TF2.4_IVIM_code_collection.git`

requirements.txt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
numpy
22
scipy
3-
operator
43
torchio
54
torch
6-
os
75
logging

0 commit comments

Comments
 (0)