Nasa countdown timer #28
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 | |
| on: | |
| pull_request: | |
| branches: [develop, main] | |
| push: | |
| branches: [develop] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Upgrade pip & install dev deps | |
| run: | | |
| python -m pip install --upgrade pip | |
| # install the backend package in editable mode with dev extras | |
| python -m pip install -e "./backend[dev]" | |
| - name: Ruff | |
| run: python -m ruff check backend | |
| - name: Black (check) | |
| run: python -m black --check backend | |
| - name: Pytest | |
| run: python -m pytest -q backend/tests |