Skip to content

Commit

Permalink
Merge pull request #94 from muellerdo/development
Browse files Browse the repository at this point in the history
Drop CI/CD from Travis-CI and replaced it with GitHub Actions
  • Loading branch information
muellerdo authored Jul 27, 2021
2 parents 26457b0 + 9021a91 commit 50175b1
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 34 deletions.
35 changes: 35 additions & 0 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# This workflow will install Python dependencies and run tests with a variety of Python versions
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
# CUSTOM Modifications by Dominik Müller (2021)

name: Python package

on:
push:
branches: [ master, development ]
pull_request:
branches: [ master, development ]

jobs:
build:

runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Test with pytest
run: |
pytest -v
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

6 changes: 3 additions & 3 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
numpy==1.18.5
numpy==1.19.2
pandas==1.1.4
tensorflow==2.5.0
tensorflow-addons==0.13.0
nibabel==3.1.0
matplotlib==3.3.1
pillow==8.2.0
batchgenerators==0.20.1
batchgenerators==0.21
pydicom==2.0.0
SimpleITK==2.0.2
scikit-image==0.15.0
scikit-image==0.18.2
tqdm==4.51.0
8 changes: 4 additions & 4 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,19 @@
long_description=long_description,
long_description_content_type="text/markdown",
packages=find_packages(),
python_requires='>=3.6',
python_requires='>=3.7',
install_requires=['tensorflow==2.5.0',
'tensorflow-addons==0.13.0',
'numpy>=1.18.5',
'numpy==1.19.2',
'pandas>=1.1.4',
'tqdm==4.51.0',
'nibabel>=3.1.0',
'matplotlib==3.3.1',
'pillow==8.2.0',
'batchgenerators>=0.20.1',
'batchgenerators>=0.21',
'pydicom==2.0.0',
'SimpleITK==2.0.2',
'scikit-image==0.15.0'],
'scikit-image==0.18.2'],
classifiers=["Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
Expand Down

0 comments on commit 50175b1

Please sign in to comment.