From 3f6ad1294dea60b16671d2acaef59402764ed9f1 Mon Sep 17 00:00:00 2001 From: Jirka Date: Thu, 16 Sep 2021 23:07:39 +0200 Subject: [PATCH 1/2] add GH action --- .github/workflows/ci-testing.yml | 37 ++++++++++++++++++++++++++++++++ requirements.txt | 11 ++++------ 2 files changed, 41 insertions(+), 7 deletions(-) create mode 100644 .github/workflows/ci-testing.yml diff --git a/.github/workflows/ci-testing.yml b/.github/workflows/ci-testing.yml new file mode 100644 index 0000000..3a2df77 --- /dev/null +++ b/.github/workflows/ci-testing.yml @@ -0,0 +1,37 @@ +name: CI testing + +# see: https://help.github.com/en/actions/reference/events-that-trigger-workflows +on: # Trigger the workflow on push or pull request, but only for the main branch + push: + branches: [master] + pull_request: {} + +jobs: + pytest: + + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + os: [ubuntu-20.04] + python-version: [3.8] + + # Timeout: https://stackoverflow.com/a/59076067/4521646 + timeout-minutes: 45 + + 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: | + pip install --requirement requirements.txt --find-links https://download.pytorch.org/whl/cpu/torch_stable.html + pip list + shell: bash + + - name: Tests + run: | + python train.py --ci_test diff --git a/requirements.txt b/requirements.txt index 89d22b8..afeb300 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,8 +1,5 @@ # python requirements -pip>=9.0.1 -#logging==0.4.9.6 -torch==0.4.1 -numpy==1.15.4 -nibabel==2.4.1 -scipy==1.1.0 -argparse==1.1 \ No newline at end of file +torch>=1.3 +numpy>=1.15.4 +nibabel>=2.4.1 +scipy>=1.1.0 \ No newline at end of file From 65d2515d1632c62e81866d75009842cce80f037c Mon Sep 17 00:00:00 2001 From: Jirka Date: Thu, 16 Sep 2021 23:08:40 +0200 Subject: [PATCH 2/2] drop drone --- .drone.yml | 6 ------ 1 file changed, 6 deletions(-) delete mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 4a918aa..0000000 --- a/.drone.yml +++ /dev/null @@ -1,6 +0,0 @@ -pipeline: - build: - name: testing phase - image: cshwhale/dockerfiles:latest - commands: - - python train.py --ci_test