Move review_and_test script to develop #37
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: Run Unit Tests | |
| on: | |
| push: | |
| branches: [ main, master, develop ] | |
| pull_request: | |
| branches: [ main, master, develop ] | |
| workflow_dispatch: | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.12' | |
| - name: Display Python version | |
| run: python --version | |
| - name: Run unit tests for fix functions | |
| run: | | |
| cd ${{ github.workspace }} | |
| python3 test_fixes.py | |
| - name: Test summary | |
| if: success() | |
| run: | | |
| echo "✅ All unit tests passed successfully!" | |
| python3 test_fixes.py -v 2>&1 | grep -E "^test_|Ran|OK" |