Create deltatest.yaml

This commit is contained in:
deltatest.dev 2026-06-14 21:09:55 +03:00 committed by GitHub
parent 0d8bbe9ca3
commit 5d07a95656
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 41 additions and 0 deletions

41
.github/workflows/deltatest.yaml vendored Normal file
View File

@ -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