From 0d8bbe9ca39af20ab05791a939a0c6c6b127d126 Mon Sep 17 00:00:00 2001 From: "deltatest.dev" Date: Sun, 14 Jun 2026 21:09:20 +0300 Subject: [PATCH 1/2] Create deltatest.properties.json --- .github/workflows/deltatest.properties.json | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 .github/workflows/deltatest.properties.json diff --git a/.github/workflows/deltatest.properties.json b/.github/workflows/deltatest.properties.json new file mode 100644 index 000000000..2bd9e2361 --- /dev/null +++ b/.github/workflows/deltatest.properties.json @@ -0,0 +1,15 @@ +{ + "name": "DeltaTest (Smart Affected Test Runner)", + "description": "Accelerate your CI/CD by running only the Python/pytest tests affected by your code changes.", + "iconName": "terminal", + "categories": [ + "Python", + "Testing" + ], + "filePatterns": [ + "requirements.txt$", + "setup.py$", + "pyproject.toml$", + ".*\\.py$" + ] +} From 5d07a95656bd9c7ab00f02b6ebf351f5a783208b Mon Sep 17 00:00:00 2001 From: "deltatest.dev" Date: Sun, 14 Jun 2026 21:09:55 +0300 Subject: [PATCH 2/2] Create deltatest.yaml --- .github/workflows/deltatest.yaml | 41 ++++++++++++++++++++++++++++++++ 1 file changed, 41 insertions(+) create mode 100644 .github/workflows/deltatest.yaml diff --git a/.github/workflows/deltatest.yaml b/.github/workflows/deltatest.yaml new file mode 100644 index 000000000..2b6f98072 --- /dev/null +++ b/.github/workflows/deltatest.yaml @@ -0,0 +1,41 @@ +name: DeltaTest (Smart Affected Test Runner) + +on: + push: + branches: [ $default-branch ] + pull_request: + branches: [ $default-branch ] + +permissions: + contents: read + checks: write + +jobs: + deltatest: + name: DeltaTest Runner + runs-on: ubuntu-latest + + steps: + - name: Checkout Code + uses: actions/checkout@v4 + with: + fetch-depth: 0 # DeltaTest requires the full Git history to calculate diffs and find affected tests + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + cache: 'pip' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + pip install deltatest-cli + + - name: Run Affected Tests + env: + DELTA_API_KEY: ${{ secrets.DELTA_API_KEY }} + DELTA_REPO_ID: ${{ secrets.DELTA_REPO_ID }} + run: | + delta run