From fb833f2b819cf62a65be53ec533867c83a3872cf Mon Sep 17 00:00:00 2001 From: Gaofei Zhao <15748980+dippindots@users.noreply.github.com> Date: Wed, 9 Aug 2023 17:52:03 -0400 Subject: [PATCH] Update tests --- .circleci/config.yml | 23 ----------------- .../workflows/validate_changed_studies.yml | 25 +++++++++++++++++++ 2 files changed, 25 insertions(+), 23 deletions(-) create mode 100644 .github/workflows/validate_changed_studies.yml diff --git a/.circleci/config.yml b/.circleci/config.yml index 2e446a922e..261affa968 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -4,25 +4,6 @@ # version: 2 jobs: - - # Job to validate only the changed studies - build: - docker: - - image: circleci/python:3.6 - resource_class: large - working_directory: ~/repo/ - steps: - - checkout - - run: - name: Validate changed studies - command: | - cd ~/repo/.circleci - ./install_dependencies.sh - ./validate_changed_studies.sh - no_output_timeout: 2h - - store_artifacts: - path: ~/test-reports - destination: ~/test-reports # Job to validate all studies validate_all_studies: @@ -92,10 +73,6 @@ workflows: # is merged into the master branch. workflow_on_commit: jobs: - - build: - filters: - branches: - ignore: master - validate_changed_seed: filters: branches: diff --git a/.github/workflows/validate_changed_studies.yml b/.github/workflows/validate_changed_studies.yml new file mode 100644 index 0000000000..aa597452f9 --- /dev/null +++ b/.github/workflows/validate_changed_studies.yml @@ -0,0 +1,25 @@ +name: Validate Changed Studies + +on: + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Configure Git + run: | + git config user.name "Continuous Integration" + git config user.email "ci@example.com" + + - name: Validate changed studies + run: | + cd .circleci + ./install_dependencies.sh + ./validate_changed_studies.sh