Skip to content

chore(deps): update dependency coverage to v7.15.0 (release-1.8) #199

chore(deps): update dependency coverage to v7.15.0 (release-1.8)

chore(deps): update dependency coverage to v7.15.0 (release-1.8) #199

Workflow file for this run

# Run pytest unit tests on pull requests
name: Run Pytest Unit Tests
on:
pull_request:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # 6.0.1
with:
fetch-depth: 0
- name: Check if tests should be skipped
id: skip_check
uses: ./.github/actions/should-skip-build
with:
commit-sha: ${{ github.sha }}
check-image: 'false'
file-patterns: |
^.*\.md$
^renovate\.json$
^examples\/
^\.cursor\/
- name: Set up Python
if: steps.skip_check.outputs.should_skip != 'true'
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: '3.14'
cache: 'pip'
- name: Install dependencies
if: steps.skip_check.outputs.should_skip != 'true'
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
pip install -r requirements.dev.txt
- name: Run pytest
if: steps.skip_check.outputs.should_skip != 'true'
run: |
pytest
- name: Test Summary
if: steps.skip_check.outputs.should_skip != 'true'
run: |
echo "## Test Results" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "✅ All tests passed successfully!" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
- name: Test Skipped Summary
if: steps.skip_check.outputs.should_skip == 'true'
env:
SKIP_REASON: ${{ steps.skip_check.outputs.skip_reason }}
COMMIT_SHA: ${{ github.sha }}
run: |
SHORT_SHA="${COMMIT_SHA:0:7}"
echo "## Tests Skipped" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Reason" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "${SKIP_REASON}" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "### Details" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "- **Commit SHA**: \`${COMMIT_SHA}\`" >> $GITHUB_STEP_SUMMARY
echo "- **Short SHA**: \`${SHORT_SHA}\`" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "No test execution was performed." >> $GITHUB_STEP_SUMMARY