Files
agent-framework/.github/workflows/python-tests.yml
T
copilot-swe-agent[bot] e6baafe4bb Fix merge-gatekeeper: treat cancelled checks as pending; add fail-fast: false to python-tests
- In merge-gatekeeper.yml: treat `cancelled` check conclusions as `pending`
  instead of `error`. A cancelled job means it was interrupted (e.g. by a
  manual cancel or fail-fast cascade), not that it actually failed. The
  gatekeeper now waits for a re-run rather than immediately blocking the PR.
- In python-tests.yml: change `fail-fast: false` so that when one matrix job
  fails, the remaining jobs run to completion instead of being cancelled.
  This prevents cascade `cancelled` conclusions that would trip the gatekeeper.
2026-06-04 21:45:23 +00:00

56 lines
1.6 KiB
YAML

name: Python - Tests
on:
pull_request:
branches: ["main", "feature*"]
paths:
- "python/**"
env:
# Configure a constant location for the uv cache
UV_CACHE_DIR: /tmp/.uv-cache
jobs:
python-tests:
name: Python Tests
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
python-version: ["3.10", "3.11", "3.12", "3.13", "3.14"]
# todo: add macos-latest when problems are resolved
os: [ubuntu-latest, windows-latest]
env:
UV_PYTHON: ${{ matrix.python-version }}
permissions:
contents: write
defaults:
run:
working-directory: python
steps:
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
- name: Set up python and install the project
id: python-setup
uses: ./.github/actions/python-setup
with:
python-version: ${{ matrix.python-version }}
os: ${{ runner.os }}
exclude-packages: ${{ matrix.python-version == '3.10' && 'agent-framework-github-copilot' || '' }}
env:
# Configure a constant location for the uv cache
UV_CACHE_DIR: /tmp/.uv-cache
# Unit tests
- name: Run all tests
run: uv run poe test -A --junitxml=pytest.xml
working-directory: ./python
# Surface failing tests
- name: Surface failing tests
if: always()
uses: pmeier/pytest-results-action@20b595761ba9bf89e115e875f8bc863f913bc8ad # v0.7.2
with:
path: ./python/pytest.xml
summary: true
display-options: fEX
fail-on-empty: false
title: Test results