From 3a30fc9d80cabe5aedb27e6de0da7baf7d0f51ab Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Dec 2025 06:35:40 +0000 Subject: [PATCH 1/3] Initial plan From d5f58f5f1d37448da9cd9dca1ba0a99f48259583 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Dec 2025 06:39:47 +0000 Subject: [PATCH 2/3] Update all references from python-testing/Python Testing to python-unit-testing/Python Unit Testing Co-authored-by: thoughtparametersllc <194255310+thoughtparametersllc@users.noreply.github.com> --- .github/IMPLEMENTATION_SUMMARY.md | 12 ++++++------ .github/QUICK_START.md | 10 +++++----- .github/USAGE.md | 26 +++++++++++++------------- CHANGELOG.md | 4 ++-- CONTRIBUTING.md | 6 +++--- README.md | 18 +++++++++--------- SECURITY.md | 2 +- 7 files changed, 39 insertions(+), 39 deletions(-) diff --git a/.github/IMPLEMENTATION_SUMMARY.md b/.github/IMPLEMENTATION_SUMMARY.md index 0c0d0b9..50433d8 100644 --- a/.github/IMPLEMENTATION_SUMMARY.md +++ b/.github/IMPLEMENTATION_SUMMARY.md @@ -1,4 +1,4 @@ -# Python Testing Action - Implementation Summary +# Python Unit Testing Action - Implementation Summary ## Overview @@ -30,7 +30,7 @@ SVG badges can be generated showing: ## File Structure ``` -python-testing/ +python-unit-testing/ ├── action.yml # Main action definition ├── README.md # User-facing documentation ├── CHANGELOG.md # Version history @@ -123,19 +123,19 @@ All validations passed successfully: ### Basic Usage ```yaml -- uses: thoughtparametersllc/python-testing@v1 +- uses: thoughtparametersllc/python-unit-testing@v1 ``` ### With Badge Generation ```yaml -- uses: thoughtparametersllc/python-testing@v1 +- uses: thoughtparametersllc/python-unit-testing@v1 with: commit-badges: 'true' ``` ### Advanced Configuration ```yaml -- uses: thoughtparametersllc/python-testing@v1 +- uses: thoughtparametersllc/python-unit-testing@v1 with: python-version: '3.11' requirements-file: 'requirements-dev.txt' @@ -185,7 +185,7 @@ Potential improvements for future versions: ## Support For issues, questions, or contributions: -- GitHub Issues: https://github.com/thoughtparametersllc/python-testing/issues +- GitHub Issues: https://github.com/thoughtparametersllc/python-unit-testing/issues - Documentation: See README.md and USAGE.md - Examples: See `.github/workflows/` and `examples/` diff --git a/.github/QUICK_START.md b/.github/QUICK_START.md index e72ce3a..4bc467c 100644 --- a/.github/QUICK_START.md +++ b/.github/QUICK_START.md @@ -1,6 +1,6 @@ # Quick Start Guide -Get started with Python Testing Action in minutes! +Get started with Python Unit Testing Action in minutes! ## 1. Basic Setup (2 minutes) @@ -15,7 +15,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: thoughtparametersllc/python-testing@v1 + - uses: thoughtparametersllc/python-unit-testing@v1 ``` Commit and push. Done! 🎉 @@ -35,7 +35,7 @@ jobs: contents: write steps: - uses: actions/checkout@v4 - - uses: thoughtparametersllc/python-testing@v1 + - uses: thoughtparametersllc/python-unit-testing@v1 with: commit-badges: 'true' ``` @@ -51,7 +51,7 @@ Then add badge to your README manually: Add pytest-specific options: ```yaml -- uses: thoughtparametersllc/python-testing@v1 +- uses: thoughtparametersllc/python-unit-testing@v1 with: python-version: '3.11' requirements-file: 'requirements.txt' @@ -79,4 +79,4 @@ Add pytest-specific options: ## Need Help? - See [Troubleshooting](USAGE.md#troubleshooting) section -- [Open an issue](https://github.com/thoughtparametersllc/python-testing/issues) +- [Open an issue](https://github.com/thoughtparametersllc/python-unit-testing/issues) diff --git a/.github/USAGE.md b/.github/USAGE.md index b24dd6e..ecd158a 100644 --- a/.github/USAGE.md +++ b/.github/USAGE.md @@ -1,6 +1,6 @@ -# Python Testing Action - Usage Guide +# Python Unit Testing Action - Usage Guide -This guide provides detailed information on using the Python Testing GitHub Action. +This guide provides detailed information on using the Python Unit Testing GitHub Action. ## Table of Contents @@ -24,7 +24,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: thoughtparametersllc/python-testing@v1 + - uses: thoughtparametersllc/python-unit-testing@v1 ``` That's it! The action will install pytest and run your tests. @@ -39,7 +39,7 @@ The action installs and runs pytest with your specified options. **Example configuration:** ```yaml -- uses: thoughtparametersllc/python-testing@v1 +- uses: thoughtparametersllc/python-unit-testing@v1 with: pytest-options: '--cov=mypackage --cov-report=xml' ``` @@ -51,7 +51,7 @@ The action installs and runs pytest with your specified options. Specify the Python version to use: ```yaml -- uses: thoughtparametersllc/python-testing@v1 +- uses: thoughtparametersllc/python-unit-testing@v1 with: python-version: '3.11' ``` @@ -61,7 +61,7 @@ Specify the Python version to use: Install additional dependencies before running tests: ```yaml -- uses: thoughtparametersllc/python-testing@v1 +- uses: thoughtparametersllc/python-unit-testing@v1 with: requirements-file: 'requirements-dev.txt' ``` @@ -71,7 +71,7 @@ Install additional dependencies before running tests: Pass custom options to pytest: ```yaml -- uses: thoughtparametersllc/python-testing@v1 +- uses: thoughtparametersllc/python-unit-testing@v1 with: pytest-options: '--cov --cov-report=xml --maxfail=1' ``` @@ -92,7 +92,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: thoughtparametersllc/python-testing@v1 + - uses: thoughtparametersllc/python-unit-testing@v1 with: commit-badges: 'true' badges-directory: '.github/badges' @@ -124,7 +124,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: thoughtparametersllc/python-testing@v1 + - uses: thoughtparametersllc/python-unit-testing@v1 with: python-version: ${{ matrix.python-version }} ``` @@ -145,7 +145,7 @@ jobs: steps: - uses: actions/checkout@v4 - - uses: thoughtparametersllc/python-testing@v1 + - uses: thoughtparametersllc/python-unit-testing@v1 with: python-version: ${{ matrix.python-version }} ``` @@ -155,7 +155,7 @@ jobs: Generate coverage reports with pytest: ```yaml -- uses: thoughtparametersllc/python-testing@v1 +- uses: thoughtparametersllc/python-unit-testing@v1 with: pytest-options: '--cov=mypackage --cov-report=xml --cov-report=html' @@ -170,7 +170,7 @@ Generate coverage reports with pytest: Run different options on different branches: ```yaml -- uses: thoughtparametersllc/python-testing@v1 +- uses: thoughtparametersllc/python-unit-testing@v1 with: pytest-options: ${{ github.ref == 'refs/heads/main' && '--cov --slow' || '--fast' }} ``` @@ -238,4 +238,4 @@ See the [.github/workflows/](./../workflows/) directory for example workflow con If you need help: - Check the [README](../../README.md) - Review [example workflows](./../workflows/) -- [Open an issue](https://github.com/thoughtparametersllc/python-testing/issues) +- [Open an issue](https://github.com/thoughtparametersllc/python-unit-testing/issues) diff --git a/CHANGELOG.md b/CHANGELOG.md index 26d68b5..3cdf874 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -24,8 +24,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Updated USAGE.md to clarify the action installs pytest and runs tests (not automatic detection) - Updated QUICK_START.md to reflect actual badge generation workflow - Updated IMPLEMENTATION_SUMMARY.md to accurately reflect pytest-only implementation -- Fixed CONTRIBUTING.md references from "Python Linting Action" to "Python Testing Action" -- Fixed clone path in CONTRIBUTING.md from "python-linting" to "python-testing" +- Fixed CONTRIBUTING.md references from "Python Linting Action" to "Python Unit Testing Action" +- Fixed clone path in CONTRIBUTING.md from "python-linting" to "python-unit-testing" - Removed documentation for non-existent inputs: unittest-options, nose-options, behave-options, tox-options, generate-badges, update-readme, readme-path, and badge-style - Updated feature list to reflect pytest-only support diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index bc8197f..49fb33b 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -1,4 +1,4 @@ -# Contributing to Python Testing Action +# Contributing to Python Unit Testing Action First off, thank you for considering contributing to this project! It's people like you that make the open-source community such an amazing place to learn, inspire, and create. Any contributions you make are @@ -10,8 +10,8 @@ open-source community such an amazing place to learn, inspire, and create. Any c 2. **Clone your fork** locally: ```bash - git clone https://github.com/your-username/python-testing.git - cd python-testing + git clone https://github.com/your-username/python-unit-testing.git + cd python-unit-testing ``` 3. **Create a new branch** for your feature or fix: diff --git a/README.md b/README.md index 2c573a5..ef56a1a 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ -# python-testing +# python-unit-testing [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) -[![GitHub Marketplace](https://img.shields.io/badge/Marketplace-Python%20Testing-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=github)](https://github.com/marketplace/actions/python-testing) +[![GitHub Marketplace](https://img.shields.io/badge/Marketplace-Python%20Unit%20Testing-blue.svg?colorA=24292e&colorB=0366d6&style=flat&longCache=true&logo=github)](https://github.com/marketplace/actions/python-unit-testing) GitHub Action to run Python tests using pytest. @@ -38,7 +38,7 @@ jobs: - uses: actions/checkout@v4 - name: Run Python Tests - uses: thoughtparametersllc/python-testing@v1 # or @ before first release + uses: thoughtparametersllc/python-unit-testing@v1 # or @ before first release ``` ### Advanced Example with All Options @@ -56,7 +56,7 @@ jobs: - uses: actions/checkout@v4 - name: Run Python Tests - uses: thoughtparametersllc/python-testing@v1 + uses: thoughtparametersllc/python-unit-testing@v1 with: python-version: '3.11' requirements-file: 'requirements.txt' @@ -71,7 +71,7 @@ Enable badge generation to automatically create SVG badges for pytest: ```yaml - name: Run Python Tests - uses: thoughtparametersllc/python-testing@v1 + uses: thoughtparametersllc/python-unit-testing@v1 with: commit-badges: 'true' badges-directory: '.github/badges' @@ -111,7 +111,7 @@ The action installs pytest and runs your tests with the specified options. You c ### pytest Project with Coverage ```yaml -- uses: thoughtparametersllc/python-testing@v1 +- uses: thoughtparametersllc/python-unit-testing@v1 with: pytest-options: '--cov=mypackage --cov-report=xml' ``` @@ -119,7 +119,7 @@ The action installs pytest and runs your tests with the specified options. You c ### With Custom Requirements ```yaml -- uses: thoughtparametersllc/python-testing@v1 +- uses: thoughtparametersllc/python-unit-testing@v1 with: requirements-file: 'requirements-dev.txt' pytest-options: '--verbose' @@ -128,7 +128,7 @@ The action installs pytest and runs your tests with the specified options. You c ### With Badge Generation ```yaml -- uses: thoughtparametersllc/python-testing@v1 +- uses: thoughtparametersllc/python-unit-testing@v1 with: pytest-options: '--verbose' commit-badges: 'true' @@ -181,4 +181,4 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file ## Support If you encounter any issues or have questions, please -[open an issue](https://github.com/thoughtparametersllc/python-testing/issues) on GitHub. +[open an issue](https://github.com/thoughtparametersllc/python-unit-testing/issues) on GitHub. diff --git a/SECURITY.md b/SECURITY.md index d1c4f5c..a7a9cc1 100644 --- a/SECURITY.md +++ b/SECURITY.md @@ -20,7 +20,7 @@ We take the security of this GitHub Action seriously. If you discover a security Instead, please report them via email to: - **Email**: [jason.miller@thoughtparameters.com](mailto:jason.miller@thoughtparameters.com) -- **Subject**: Security Vulnerability in python-testing action +- **Subject**: Security Vulnerability in python-unit-testing action ### What to Include From a1fed568d478579db124b32093fa04633fa00d5a Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Fri, 19 Dec 2025 06:41:10 +0000 Subject: [PATCH 3/3] Fix remaining Python Testing references in IMPLEMENTATION_SUMMARY.md and release.yml Co-authored-by: thoughtparametersllc <194255310+thoughtparametersllc@users.noreply.github.com> --- .github/IMPLEMENTATION_SUMMARY.md | 2 +- .github/workflows/release.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/IMPLEMENTATION_SUMMARY.md b/.github/IMPLEMENTATION_SUMMARY.md index 50433d8..512e23a 100644 --- a/.github/IMPLEMENTATION_SUMMARY.md +++ b/.github/IMPLEMENTATION_SUMMARY.md @@ -2,7 +2,7 @@ ## Overview -This document provides a comprehensive summary of the Python Testing GitHub Action implementation. +This document provides a comprehensive summary of the Python Unit Testing GitHub Action implementation. ## What Was Built diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fd51afc..4982195 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -243,7 +243,7 @@ jobs: echo "5. Click 'Update release'" echo "" echo "The action.yml already includes marketplace metadata:" - echo " - Name: Python Testing" + echo " - Name: Python Unit Testing" echo " - Description: Run Python tests using pytest, generate SVG badges for test results, and optionally commit the badges to the repository." echo " - Author: Jason Miller" echo " - Branding: check-circle icon, green color"