Sincronizar antes de pull #44
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 review_and_test.py | |
| run: | | |
| cd ${{ github.workspace }} | |
| PYTHONPATH=src python3 scripts/review_and_test.py | |
| - name: Test summary | |
| if: success() | |
| run: echo "✅ All unit tests and scripts passed successfully!" |