add organizers field to contest serialization (#146) #142
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: Pylint | |
| on: | |
| pull_request: | |
| branches: [main] | |
| push: | |
| branches: [main] | |
| jobs: | |
| lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Check out repository | |
| uses: actions/checkout@v4 | |
| - name: Set up Python | |
| uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Cache pip | |
| uses: actions/cache@v4 | |
| with: | |
| path: ~/.cache/pip | |
| key: ${{ runner.os }}-pip-${{ hashFiles('backend/requirements.txt') }} | |
| restore-keys: | | |
| ${{ runner.os }}-pip- | |
| - name: Install dependencies | |
| working-directory: backend | |
| run: | | |
| python -m pip install --upgrade pip | |
| if [ -f requirements.txt ]; then python -m pip install -r requirements.txt; fi | |
| python -m pip install pylint | |
| - name: Run pylint on main.py | |
| working-directory: backend | |
| run: python -m pylint --fail-under=9 main.py | |
| - name: Run pylint on models | |
| working-directory: backend | |
| run: python -m pylint --fail-under=9 app/models/ | |
| - name: Run pylint on routes | |
| working-directory: backend | |
| run: python -m pylint --fail-under=9 app/routes/ |