[WIP] Refactor into monorepo #20
Workflow file for this run
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: API - Unit Tests | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - 'api/**' | |
| pull_request: | |
| branches: | |
| - '**' | |
| paths: | |
| - 'api/**' | |
| jobs: | |
| run: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout the code | |
| - name: Checkout code | |
| uses: actions/checkout@v4 | |
| # Create .env file with defaults | |
| - name: Set default ENV values | |
| run: | | |
| cp .env.example .env | |
| # Set up Python | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: ${{ vars.PYTHON_VERSION }} | |
| # Install dependencies | |
| - name: Install dependencies | |
| run: | | |
| cd api | |
| pip install --upgrade pip | |
| pip install -r requirements.txt | |
| pip install -r dev-requirements.txt | |
| # Run Tests | |
| - name: Run Unit Tests | |
| run: | | |
| cd api | |
| pytest -m unit |