From f873f1109893777c3923233bcfdbc5b48cd63ced Mon Sep 17 00:00:00 2001 From: tvaughanRR Date: Mon, 3 Aug 2026 13:45:37 -0400 Subject: [PATCH] CLOUD-2092 Add PR Tests gate Add a pr-tests.yml running the unit test suite via pytest plus a PR Tests aggregator via the shared rocketreach/github-actions/testing/pr-tests action. This repo had no PR-triggered checks previously. Co-Authored-By: Claude Opus 4.8 (1M context) --- .github/workflows/pr-tests.yml | 47 ++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 .github/workflows/pr-tests.yml diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml new file mode 100644 index 0000000..3abe1e4 --- /dev/null +++ b/.github/workflows/pr-tests.yml @@ -0,0 +1,47 @@ +name: PR Tests + +on: + pull_request: + branches: ["main"] + +concurrency: + group: ${{ github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + pr-tests: + name: PR Tests + needs: [run_python_tests] + if: ${{ always() }} + runs-on: ubuntu-latest + steps: + - uses: rocketreach/github-actions/testing/pr-tests@main + with: + needs: ${{ toJSON(needs) }} + + run_python_tests: + strategy: + matrix: + python_version: ["3.13", "3.12"] + name: Run Python Tests + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: rocketreach/github-actions/github/checkout@main + + - name: Set up Python ${{ matrix.python_version }} + uses: rocketreach/github-actions/python/setup-python@main + with: + python-version: ${{ matrix.python_version }} + + - name: Install package and test dependencies + run: pip install -e . pytest + + # test_integration.py targets a localhost:8000 dev server that is not + # available on CI runners; run the unit tests only. + - name: Test with pytest + run: pytest rocketreach/tests/test_resource.py rocketreach/tests/test_search.py -v