From 3c8b6dbbcb9177a07c886282cf44fb4110fd316c Mon Sep 17 00:00:00 2001 From: Erica Portnoy Date: Fri, 17 Apr 2026 14:41:34 -0700 Subject: [PATCH] convert .azure-pipelines/main.yml to .github/workflows/pr-test-suite.yml to run PR test suite --- .azure-pipelines/main.yml | 18 ----------------- .github/workflows/pr-test-suite.yml | 31 +++++++++++++++++++++++++++++ 2 files changed, 31 insertions(+), 18 deletions(-) delete mode 100644 .azure-pipelines/main.yml create mode 100644 .github/workflows/pr-test-suite.yml diff --git a/.azure-pipelines/main.yml b/.azure-pipelines/main.yml deleted file mode 100644 index 315b0d47f..000000000 --- a/.azure-pipelines/main.yml +++ /dev/null @@ -1,18 +0,0 @@ -# We run the test suite on commits to main so codecov gets coverage data -# about the main branch and can use it to track coverage changes. -trigger: - - main -pr: - - main - - '*.x' - -variables: - # We set this here to avoid coverage data being uploaded from things like our - # nightly pipeline. This is done because codecov (helpfully) keeps track of - # the number of coverage uploads for a commit and displays a warning when - # comparing two commits with an unequal number of uploads. Only uploading - # coverage here should keep the number of uploads it sees consistent. - uploadCoverage: true - -jobs: - - template: templates/jobs/standard-tests-jobs.yml diff --git a/.github/workflows/pr-test-suite.yml b/.github/workflows/pr-test-suite.yml new file mode 100644 index 000000000..e3808f757 --- /dev/null +++ b/.github/workflows/pr-test-suite.yml @@ -0,0 +1,31 @@ +# We run the test suite on commits to main so codecov gets coverage data +# about the main branch and can use it to track coverage changes. +name: PR test suite +on: + push: + branches: + - main + pull_request: + branches: + - main + - "*.x" + workflow_dispatch: +permissions: + contents: read +concurrency: + # https://stackoverflow.com/questions/74117321/if-condition-in-concurrency-in-gha + group: ${{ github.workflow }}-${{ github.head_ref && github.ref || github.run_id }} + cancel-in-progress: true + +jobs: + standard_tests_jobs: + name: standard_tests_jobs + uses: "./.github/workflows/standard_tests_jobs.yml" + + with: + # We set this here to avoid coverage data being uploaded from things like our + # nightly pipeline. This is done because codecov (helpfully) keeps track of + # the number of coverage uploads for a commit and displays a warning when + # comparing two commits with an unequal number of uploads. Only uploading + # coverage here should keep the number of uploads it sees consistent. + uploadCoverage: true