Repository navigation
Expand file tree
/
Copy pathaction.yml
More file actions
49 lines (44 loc) · 1.54 KB
/
Copy pathaction.yml
File metadata and controls
49 lines (44 loc) · 1.54 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: 'Python Multi-OS Matrix CI & Verification'
description: 'Cross-platform testing matrix, UTF-8 encoding fix, and CI summary tables.'
author: 'parveen029'
branding:
icon: 'check-circle'
color: 'green'
inputs:
python-version:
description: 'Python version to test'
required: false
default: '3.11'
enable-utf8:
description: 'Enforce UTF-8 encoding mode across Windows and subprocesses'
required: false
default: 'true'
run-command:
description: 'Command to run verification tests'
required: true
default: 'python -m pytest'
runs:
using: 'composite'
steps:
- name: Configure git line endings
shell: bash
run: git config --global core.autocrlf false
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: ${{ inputs.python-version }}
- name: Run verification test suite
id: test_run
shell: bash
env:
PYTHONIOENCODING: 'utf-8'
PYTHONUTF8: '1'
run: ${{ inputs.run-command }}
- name: Generate CI execution summary table
if: always()
shell: bash
run: |
echo "### 📊 CI Verification Summary (${{ runner.os }}, Python ${{ inputs.python-version }})" >> $GITHUB_STEP_SUMMARY
echo "| Verification Gate | Outcome |" >> $GITHUB_STEP_SUMMARY
echo "|---|---|" >> $GITHUB_STEP_SUMMARY
echo "| Test Suite Execution | ${{ steps.test_run.outcome == 'success' && '✅ Passed' || (steps.test_run.outcome == 'skipped' && '⏭️ Skipped' || '❌ Failed') }} |" >> $GITHUB_STEP_SUMMARY