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..6ae5bb8928 --- /dev/null +++ b/.github/workflows/validate_changed_studies.yml @@ -0,0 +1,20 @@ +name: Validate Changed Studies + +on: + pull_request: + branches: + - main + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Validate changed studies + run: | + cd .circleci + ./install_dependencies.sh + ./validate_changed_studies.sh