{{ message }}
Python Multi-OS Matrix CI & Verification
ActionsAbout
v1.0.0
LatestBy parveen0029
Tags
(1)A production-grade, reusable GitHub Action for automated cross-platform Python testing, UTF-8 encoding normalization on Windows, line-ending auto-alignment, and dynamic Markdown summary table reporting.
- 🐧 🪟 🍎 Cross-Platform Matrix Ready: Seamlessly runs across Linux (
ubuntu-latest), Windows (windows-latest), and macOS (macos-latest). - 🔤 UTF-8 Subprocess Normalization: Prevents
UnicodeDecodeErrorand Windowscp1252console crashes via global PEP 540 UTF-8 mode enforcement. - ⚡ CRLF Line-Ending Protection: Configures
core.autocrlf=falsebefore checkout to avoid spurious git diff failures on Windows. - 📊 Dynamic Step Summaries: Generates honest Markdown outcome tables (
$GITHUB_STEP_SUMMARY) directly in the PR checks view.
Add this step to your .github/workflows/ci.yml:
name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
validate:
name: Test (${{ matrix.os }}, Python ${{ matrix.python-version }})
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, windows-latest, macos-latest]
python-version: ["3.11", "3.12"]
runs-on: ${{ matrix.os }}
timeout-minutes: 20
steps:
- name: Checkout repository
uses: actions/checkout@v4
env:
GIT_CONFIG_COUNT: "1"
GIT_CONFIG_KEY_0: "core.autocrlf"
GIT_CONFIG_VALUE_0: "false"
- name: Run Matrix CI Action
uses: parveen029/python-matrix-ci-action@v1
with:
python-version: ${{ matrix.python-version }}
run-command: 'python -m pytest'Distributed under the MIT License.
Python Multi-OS Matrix CI & Verification is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.
