From 094f32e621672e81a6c544cbe9960327c941ba96 Mon Sep 17 00:00:00 2001 From: Yaroslav Halchenko Date: Wed, 13 Sep 2023 15:52:24 -0400 Subject: [PATCH] disable testing mihextras for now since needs a release --- .../test-datalad_mihextras-maint.yaml | 82 ------------------- .../test-datalad_mihextras-master.yaml | 82 ------------------- extensions.yaml | 15 ++-- 3 files changed, 8 insertions(+), 171 deletions(-) delete mode 100644 .github/workflows/test-datalad_mihextras-maint.yaml delete mode 100644 .github/workflows/test-datalad_mihextras-master.yaml diff --git a/.github/workflows/test-datalad_mihextras-maint.yaml b/.github/workflows/test-datalad_mihextras-maint.yaml deleted file mode 100644 index 26db78b..0000000 --- a/.github/workflows/test-datalad_mihextras-maint.yaml +++ /dev/null @@ -1,82 +0,0 @@ -# This file is autogenerated from extensions.yaml using scripts/generate. -# See CONTRIBUTING.md for more information - -name: test-datalad_mihextras-maint - -on: - # Trigger the workflow on pull request, - # but only if any given extension workflow was modified - pull_request: - paths: - - '.github/workflows/test-datalad_mihextras-maint.yaml' - push: - branches: - - master - paths: - - '.github/workflows/test-datalad_mihextras-maint.yaml' - # all should be triggered on cron - schedule: - - cron: '40 02 * * *' - -jobs: - test: - - runs-on: ubuntu-latest - - strategy: - matrix: - # name mimics the one in .travis.yml for datalad build introduced in - # https://github.com/datalad/datalad/pull/4640 - annex-install-scenario: [neurodebian, datalad-git-annex-latest] - fail-fast: false - - steps: - - uses: actions/checkout@v3 - - name: Set up system - shell: bash - run: | - bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh) - sudo apt-get update -qq - sudo apt-get install eatmydata python3-pip - sudo pip install datalad-installer - # just not to change the name from what we had already - case "${{ matrix.annex-install-scenario }}" in - neurodebian) - method=neurodebian;; - datalad-git-annex-latest) - method=datalad/git-annex;; - *) - echo "Unknown scenario ${{ matrix.annex-install-scenario }}" >&2 - exit 1 - esac - GITHUB_TOKEN=${{ secrets.datalad_github_token }} eatmydata \ - datalad-installer --sudo ok git-annex -m "${method}" - - name: Set up environment - run: | - git config --global user.email "test@github.land" - git config --global user.name "GitHub Almighty" - - name: Set up Python 3.7 - uses: actions/setup-python@v4 - with: - python-version: 3.7 - - name: Install DataLad (maint) - run: | - python -m pip install --upgrade pip - pip install https://github.com/datalad/datalad/archive/maint.zip - - name: Install datalad_mihextras extension from PyPI ([devel,test,tests]) - run: | - pip install datalad-mihextras[devel,test,tests] - - name: Install nose et al (just in case!) - # Note, that we need nose even in case of pytest, due to test helpers - # depending on it. - run: | - pip install pytest pytest-cov pytest-xdist nose vcrpy mock coverage - - name: WTF!? - run: | - datalad wtf - - name: datalad_mihextras tests - run: | - mkdir -p __testhome__ - cd __testhome__ - - python -m nose -s -v --with-cov --cover-package datalad datalad_mihextras diff --git a/.github/workflows/test-datalad_mihextras-master.yaml b/.github/workflows/test-datalad_mihextras-master.yaml deleted file mode 100644 index 7d1ca1a..0000000 --- a/.github/workflows/test-datalad_mihextras-master.yaml +++ /dev/null @@ -1,82 +0,0 @@ -# This file is autogenerated from extensions.yaml using scripts/generate. -# See CONTRIBUTING.md for more information - -name: test-datalad_mihextras-master - -on: - # Trigger the workflow on pull request, - # but only if any given extension workflow was modified - pull_request: - paths: - - '.github/workflows/test-datalad_mihextras-master.yaml' - push: - branches: - - master - paths: - - '.github/workflows/test-datalad_mihextras-master.yaml' - # all should be triggered on cron - schedule: - - cron: '40 02 * * *' - -jobs: - test: - - runs-on: ubuntu-latest - - strategy: - matrix: - # name mimics the one in .travis.yml for datalad build introduced in - # https://github.com/datalad/datalad/pull/4640 - annex-install-scenario: [neurodebian, datalad-git-annex-latest] - fail-fast: false - - steps: - - uses: actions/checkout@v3 - - name: Set up system - shell: bash - run: | - bash <(wget -q -O- http://neuro.debian.net/_files/neurodebian-travis.sh) - sudo apt-get update -qq - sudo apt-get install eatmydata python3-pip - sudo pip install datalad-installer - # just not to change the name from what we had already - case "${{ matrix.annex-install-scenario }}" in - neurodebian) - method=neurodebian;; - datalad-git-annex-latest) - method=datalad/git-annex;; - *) - echo "Unknown scenario ${{ matrix.annex-install-scenario }}" >&2 - exit 1 - esac - GITHUB_TOKEN=${{ secrets.datalad_github_token }} eatmydata \ - datalad-installer --sudo ok git-annex -m "${method}" - - name: Set up environment - run: | - git config --global user.email "test@github.land" - git config --global user.name "GitHub Almighty" - - name: Set up Python 3.7 - uses: actions/setup-python@v4 - with: - python-version: 3.7 - - name: Install DataLad (master) - run: | - python -m pip install --upgrade pip - pip install https://github.com/datalad/datalad/archive/master.zip - - name: Install datalad_mihextras extension from PyPI ([devel,test,tests]) - run: | - pip install datalad-mihextras[devel,test,tests] - - name: Install nose et al (just in case!) - # Note, that we need nose even in case of pytest, due to test helpers - # depending on it. - run: | - pip install pytest pytest-cov pytest-xdist nose vcrpy mock coverage - - name: WTF!? - run: | - datalad wtf - - name: datalad_mihextras tests - run: | - mkdir -p __testhome__ - cd __testhome__ - - python -m nose -s -v --with-cov --cover-package datalad datalad_mihextras diff --git a/extensions.yaml b/extensions.yaml index 1517f22..54f5216 100644 --- a/extensions.yaml +++ b/extensions.yaml @@ -65,13 +65,14 @@ extensions: ci: AppVeyor ci-user: mih branch: main - datalad_mihextras: - github: mih/datalad-mihextras - cron_time: 40 02 * * * - ci: AppVeyor - ci-user: mih - tester: nose - branch: main +# Needs a release https://github.com/mih/datalad-mihextras/issues/41 +# datalad_mihextras: +# github: mih/datalad-mihextras +# cron_time: 40 02 * * * +# ci: AppVeyor +# ci-user: mih +# tester: nose +# branch: main datalad_next: cron_time: 00 05 * * * ci: AppVeyor