feat: Refactor GitHub Action to enhance Python testing framework supp… #14
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Testing with Badges | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: write # Required for badge commits | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Run Python Tests with Badge Generation | |
| uses: thoughtparametersllc/python-testing@947908abd1dab777628becca5b772f26735e8146 | |
| with: | |
| python-version: '3.11' | |
| requirements-file: 'requirements.txt' | |
| generate-badges: 'true' | |
| badges-directory: '.github/badges' | |
| update-readme: 'true' | |
| readme-path: 'README.md' | |
| badge-style: 'path' |