This pull request refactors the /prospects API endpoint to provide a more useful and production-ready response. Instead of returning static endpoint information, the endpoint now returns a paginated, filtered, and ordered list of prospects, prioritizing flagged entries and sorting alphabetically by first name.
#191
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: 🍴 I TEST | |
| on: | |
| push: | |
| branches: ["master", "staging"] | |
| pull_request: | |
| branches: ["master", "staging"] | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: 🍔 Checkout code | |
| uses: actions/checkout@v4 | |
| - name: 🐍 Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: '3.10' | |
| - name: 📦 Install dependencies | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install -r requirements.txt | |
| - name: 🧪 Run tests | |
| run: | | |
| python -m unittest discover -s tests |