From f32caf3eb37068ad45fd1fd0296e80acafe1390f Mon Sep 17 00:00:00 2001 From: Chris Markiewicz Date: Fri, 25 Oct 2024 11:08:16 -0400 Subject: [PATCH] Remove unused workflows --- .github/workflows/docker-build-push.yml | 89 ------------------------ .github/workflows/test-bids-examples.yml | 72 ------------------- 2 files changed, 161 deletions(-) delete mode 100644 .github/workflows/docker-build-push.yml delete mode 100644 .github/workflows/test-bids-examples.yml diff --git a/.github/workflows/docker-build-push.yml b/.github/workflows/docker-build-push.yml deleted file mode 100644 index 911dbddc..00000000 --- a/.github/workflows/docker-build-push.yml +++ /dev/null @@ -1,89 +0,0 @@ -name: Build & publish containers - -on: - push: - tags: - - 'v[0-9]+.[0-9]+.[0-9]+' - -jobs: - push_docker_to_registry: - name: Push Docker image to Docker Hub - runs-on: ubuntu-latest - steps: - - name: Check out the repo - uses: actions/checkout@v4 - - - name: Log in to Docker Hub - uses: docker/login-action@v3 - with: - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_PASSWORD }} - - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v5 - with: - images: bids/validator - - - name: Build and push Docker image - uses: docker/build-push-action@v6 - with: - context: . - push: true - tags: ${{ steps.meta.outputs.tags }} - labels: ${{ steps.meta.outputs.labels }} - - push_singularity_to_registry: - runs-on: ubuntu-latest - needs: - - push_docker_to_registry - steps: - - name: Set up Go 1.13 - uses: actions/setup-go@v5 - with: - go-version: 1.13 - id: go - - name: Install Dependencies - run: | - sudo apt-get update && sudo apt-get install -y \ - build-essential \ - libssl-dev \ - uuid-dev \ - libgpgme11-dev \ - squashfs-tools \ - libseccomp-dev \ - pkg-config - - name: Install Singularity - env: - SINGULARITY_VERSION: 3.8.0 - GOPATH: /tmp/go - run: | - mkdir -p $GOPATH - sudo mkdir -p /usr/local/var/singularity/mnt && \ - mkdir -p $GOPATH/src/github.com/sylabs && \ - cd $GOPATH/src/github.com/sylabs && \ - wget -qO- https://github.com/sylabs/singularity/releases/download/v${SINGULARITY_VERSION}/singularity-ce-${SINGULARITY_VERSION}.tar.gz | \ - tar xzv && \ - cd singularity-ce-${SINGULARITY_VERSION} && \ - ./mconfig -p /usr/local && \ - make -C builddir && \ - sudo make -C builddir install - - name: Check out code for the container build - uses: actions/checkout@v4 - - name: Extract metadata (tags, labels) for Docker - id: meta - uses: docker/metadata-action@v5 - with: - images: bids/validator - - name: Build Container - run: | - tags=${{ steps.meta.outputs.tags }} - echo $tags - singularity pull container.sif docker://${tags%,*} - - name: Login and Deploy Container - if: (github.event_name != 'pull_request') - run: | - tags=${{ steps.meta.outputs.tags }} - echo ${{ secrets.GITHUB_TOKEN }} | singularity remote login -u ${{ github.actor }} --password-stdin oras://ghcr.io - for tag in $(echo $tags | sed "s/,/ /g" | sed "s/bids\/validator/bids-standard\/bids-validator/g"); - do echo $tag; singularity push container.sif oras://ghcr.io/$tag; done diff --git a/.github/workflows/test-bids-examples.yml b/.github/workflows/test-bids-examples.yml deleted file mode 100644 index 15b922cc..00000000 --- a/.github/workflows/test-bids-examples.yml +++ /dev/null @@ -1,72 +0,0 @@ -name: test-bids-examples - -on: - push: - branches: ['*'] - pull_request: - branches: ['*'] - -concurrency: - group: ${{ github.workflow }}-${{ github.ref }} - cancel-in-progress: true - -jobs: - build: - strategy: - fail-fast: false - matrix: - platform: [ubuntu-latest] - bids-examples-branch: [master] - - runs-on: ${{ matrix.platform }} - - env: - TZ: Europe/Berlin - FORCE_COLOR: 1 - - steps: - - name: Set up Node.js - uses: actions/setup-node@v4 - with: - node-version: 18 - - uses: actions/checkout@v4 - with: - submodules: recursive - - - name: Upgrade npm - run: npm install --global npm - - - name: Install bids-validator - run: | - npm install - npm link ./bids-validator - echo "./node_modules/.bin" >> $GITHUB_PATH - - - name: Get bids-examples data - run: | - git clone --depth 1 https://github.com/bids-standard/bids-examples - - - name: Display versions and environment information - run: | - echo $TZ - export PATH="../node_modules/.bin:$PATH" - date - echo "npm"; npm --version - echo "node"; node --version - echo "bids-validator"; bids-validator --version - which bids-validator - ls -a $(which bids-validator) - - - name: Ignore examples not supported by legacy validator - run: | - for DS in bids-examples/mrs_* bids-examples/dwi_deriv; do - touch $DS/.SKIP_VALIDATION - done - - - name: Validate all BIDS datasets using bids-validator - run: | - export PATH="../node_modules/.bin:$PATH" - cat ./run_tests.sh - bash ./run_tests.sh - shell: bash - working-directory: ./bids-examples