"new tool paradigm" #46
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
| # STYLE WORKFLOW CONFIGURATION FILE | |
| # ####################################################################### | |
| # Configuration file for checking code style consistency | |
| # GitHub CI services (GitHub Actions and GitHub Pages) | |
| # WORKFLOW FILE | |
| # *********************************************************************** | |
| # Workflow | |
| # ======================================================================= | |
| name: tests | |
| # Triggers | |
| # ======================================================================= | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| # Permissions | |
| # ======================================================================= | |
| # no permissions | |
| # JOBS | |
| # ======================================================================= | |
| jobs: | |
| # BUILD JOB | |
| black: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Step 1: Get your code | |
| # ----------------------------------------------------------------- | |
| - name: Checkout repository | |
| uses: actions/checkout@v4 | |
| # Step 2: Setup Python environment | |
| # ----------------------------------------------------------------- | |
| - name: Setup Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.11' | |
| # Step 3: Install dev dependencies | |
| # ----------------------------------------------------------------- | |
| - name: Install dependencies | |
| # V [CHECK THIS] use the appropriate package manager | |
| # V [CHECK THIS] include extra testing dependencies if needed | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install . | |
| # Step 4: Run unit tests | |
| # ----------------------------------------------------------------- | |
| - name: Run Tests | |
| run: python -m unittest discover -s tests -p "test_*.py" |