[WIP] Refactor into monorepo #16
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 - Ruff | |
| 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 | |
| # 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 Ruff linter and formatter | |
| - name: Run Ruff | |
| run: | | |
| cd api | |
| ruff check . |