From 781ccca62d1c5c440412b5bb5d65967c1fa71650 Mon Sep 17 00:00:00 2001 From: Adina Wagner Date: Wed, 8 Sep 2021 07:27:20 +0200 Subject: [PATCH 1/5] TST: Setup GH actions for CI, as travis ran out of credits --- .github/workflows/test_remodnav.yml | 37 +++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 .github/workflows/test_remodnav.yml diff --git a/.github/workflows/test_remodnav.yml b/.github/workflows/test_remodnav.yml new file mode 100644 index 0000000..9fb062c --- /dev/null +++ b/.github/workflows/test_remodnav.yml @@ -0,0 +1,37 @@ +name: Ubuntu-test +on: [pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + - name: Set up system and environment + shell: bash + run: | + bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh) + sudo apt-get update -qq + sudo eatmydata apt-get install --no-install-recommends git-annex-standalone aria2 git-remote-gcrypt lsof gnupg nocache + sudo eatmydata apt-get install pandoc + cd ..; pip install -q codecov; cd - + git config --global user.email "test@github.land" + git config --global user.name "GitHub Almighty" + - uses: actions/checkout@v1 + - name: Set up Python 3.7 + uses: actions/setup-python@v1 + with: + python-version: 3.7 + - name: Install dependencies + shell: bash + run: | + pip install -r requirements-devel.txt + python setup.py build + pip install -e . + - name: WTF + shell: bash + run: | + datalad wtf + - name: Run tests + shell: bash + run: | + PATH=$PWD/tools/coverage-bin:$PATH + python -m pytest -s -v --cov=remodnav --cov-report=term-missing . \ No newline at end of file From 6c1b23868bc1e6f43f50a40f30f98e0993a184fd Mon Sep 17 00:00:00 2001 From: Adina Wagner Date: Wed, 8 Sep 2021 07:37:34 +0200 Subject: [PATCH 2/5] TST: remove travis.yml file As we have run out of credits for travis.com, we can't use it for CI --- .travis.yml | 45 --------------------------------------------- 1 file changed, 45 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 8002dfe..0000000 --- a/.travis.yml +++ /dev/null @@ -1,45 +0,0 @@ -# vim ft=yaml -language: python - -git: - # we use submodules to be managed with datalad - submodules: false - -python: - # - 2.7 - - 3.6 - -cache: - - apt - -env: - global: - # will be used in the matrix, where neither other variable is used - - COVERAGE=coverage - -before_install: - # The ultimate one-liner setup for NeuroDebian repository - - bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh) - - travis_retry sudo apt-get update -qq - - travis_retry sudo eatmydata apt-get install --no-install-recommends git-annex-standalone aria2 git-remote-gcrypt lsof gnupg nocache - -install: - # Install standalone build of git-annex for the recent enough version - - travis_retry sudo eatmydata apt-get install pandoc - - cd ..; pip install -q codecov; cd - - - pip install -r requirements-devel.txt - -script: - # Report WTF information using system wide installed version - - datalad wtf - # Verify that setup.py build doesn't puke - - python setup.py build - # Test installation system-wide - - pip install -e . - # Run tests - - PATH=$PWD/tools/coverage-bin:$PATH - python -m pytest -s -v --cov=remodnav --cov-report=term-missing . - -after_success: - - coverage combine -a /tmp/.coverage-entrypoints-* - - codecov From d1d47f34060b11bdc0199739f9fda28b62336134 Mon Sep 17 00:00:00 2001 From: Adina Wagner Date: Wed, 8 Sep 2021 07:57:40 +0200 Subject: [PATCH 3/5] TST: Switch git-annex versions The previously installed version is not available under the specified URL and 404's. This commit tries to replace it with a more recent and not 404'ing version of git-annex --- .appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index 21ba19e..31f7d6a 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -56,7 +56,7 @@ environment: APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004 INSTALL_SYSPKGS: python3-virtualenv # system git-annex is way too old, use better one - INSTALL_GITANNEX: git-annex -m deb-url --url http://ftp.us.debian.org/debian/pool/main/g/git-annex/git-annex_8.20201127-1_amd64.deb + INSTALL_GITANNEX: git-annex -m deb-url --url http://ftp.us.debian.org/debian/pool/main/g/git-annex/git-annex_8.20210903-1_amd64.deb # Windows core tests #- ID: WinP39core # APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019 From 53f7ee53123602e26d7ac9d376f2842ea2cf2237 Mon Sep 17 00:00:00 2001 From: Adina Wagner Date: Wed, 8 Sep 2021 08:08:50 +0200 Subject: [PATCH 4/5] TST: Adjust datalad installer call to current API --- .appveyor.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.appveyor.yml b/.appveyor.yml index 31f7d6a..ea96923 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -124,8 +124,8 @@ install: - sh: "[ -n \"$INSTALL_SYSPKGS\" ] && ( [ \"x${APPVEYOR_BUILD_WORKER_IMAGE}\" = \"xmacOS\" ] && brew install -q ${INSTALL_SYSPKGS} || sudo apt-get install --no-install-recommends -y ${INSTALL_SYSPKGS} ) || true" # Install git-annex on windows, otherwise INSTALL_SYSPKGS can be used # deploy git-annex, if desired - - cmd: IF DEFINED INSTALL_GITANNEX python C:\DLTMP\datalad_installer.py %INSTALL_GITANNEX% - - sh: "[ -n \"${INSTALL_GITANNEX}\" ] && python ~/DLTMP/datalad_installer.py ${INSTALL_GITANNEX}" + - cmd: IF DEFINED INSTALL_GITANNEX python C:\DLTMP\datalad_installer.py --sudo ok %INSTALL_GITANNEX% + - sh: "[ -n \"${INSTALL_GITANNEX}\" ] && python ~/DLTMP/datalad_installer.py --sudo ok ${INSTALL_GITANNEX}" # TODO remove when datalad-installer can handle this - cmd: tools\ci\appveyor_install_git-annex.bat From 033722ab1fbd1a07b36ccf68e938b21766cc18e8 Mon Sep 17 00:00:00 2001 From: Adina Wagner Date: Wed, 8 Sep 2021 10:07:19 +0200 Subject: [PATCH 5/5] TST: Replace git annex url with snapshot, as suggested in #33 by @mih --- .appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.appveyor.yml b/.appveyor.yml index ea96923..70727a7 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -56,7 +56,7 @@ environment: APPVEYOR_BUILD_WORKER_IMAGE: Ubuntu2004 INSTALL_SYSPKGS: python3-virtualenv # system git-annex is way too old, use better one - INSTALL_GITANNEX: git-annex -m deb-url --url http://ftp.us.debian.org/debian/pool/main/g/git-annex/git-annex_8.20210903-1_amd64.deb + INSTALL_GITANNEX: git-annex -m deb-url --url http://snapshot.debian.org/archive/debian/20210906T204127Z/pool/main/g/git-annex/git-annex_8.20210903-1_amd64.deb # Windows core tests #- ID: WinP39core # APPVEYOR_BUILD_WORKER_IMAGE: Visual Studio 2019