Skip to content

chore(deps): update dependency pylint to v3.3.9 #210

chore(deps): update dependency pylint to v3.3.9

chore(deps): update dependency pylint to v3.3.9 #210

Workflow file for this run

name: NMP Backend Testing
on:
pull_request:
types: [opened, synchronize, reopened]
paths:
- "backend/**"
defaults:
run:
shell: bash
working-directory: ./backend
jobs:
setup-job:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
- run: "true"
testing:
needs: setup-job
runs-on: ubuntu-24.04
services:
postgres:
image: postgres:17@sha256:f337b026cb1fb954a93f2e33a62bf9ea7fffc1dafc1586c53b93922a8d6ee018
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
ports:
- 5432:5432
# health check option needed here since the container does not provide one
options: --health-cmd pg_isready --health-interval 10s --health-timeout 5s --health-retries 5
steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.14'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Run tests
env:
# Match the environment variables names used in settings.py
POSTGRES_DB: "postgres"
POSTGRES_USER: "postgres"
POSTGRES_PASSWORD: "postgres"
POSTGRES_HOST: "localhost"
POSTGRES_PORT: "5432"
DJANGO_SETTINGS_MODULE: "config.settings"
run: |
python manage.py test apps.crops.tests.test_models apps.manures.tests.test_models apps.animals.tests.test_models apps.fertilizers.tests.test_models