CI checks only (no deploy) - main #40
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: CI (no deploy) | |
| run-name: CI checks only (no deploy) - ${{ github.ref_name }} | |
| on: | |
| pull_request: | |
| push: | |
| branches: | |
| - main | |
| - develop | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| name: Test and package check Python ${{ matrix.python-version }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| python-version: | |
| - "3.11" | |
| - "3.12" | |
| - "3.13" | |
| - "3.14" | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v6 | |
| with: | |
| persist-credentials: false | |
| - name: Set up Python | |
| uses: actions/setup-python@v6 | |
| with: | |
| python-version: ${{ matrix.python-version }} | |
| cache: pip | |
| - name: Install package with development extras | |
| run: | | |
| python -m pip install --upgrade pip | |
| python -m pip install -e ".[dev]" build twine | |
| - name: Run tests | |
| run: pytest | |
| - name: Run Django checks | |
| run: python manage.py check | |
| - name: Check migrations are current | |
| run: python manage.py makemigrations --check --dry-run | |
| - name: Compile Python sources | |
| run: python -m compileall tradingcodex_cli tradingcodex_service apps tests | |
| - name: Build distributions for validation only | |
| run: python -m build | |
| - name: Validate distribution metadata without publishing | |
| run: python -m twine check dist/* |