Skip to content

validation to edit form #120

validation to edit form

validation to edit form #120

Workflow file for this run

name: CI
env:
DATABASE_URL: ${{ secrets.DATABASE_URL }}
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
build:
runs-on: ubuntu-latest
services:
postgres:
image: postgres
env:
POSTGRES_PASSWORD: postgres
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.10
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install Poetry
run: pip install poetry
- name: Install dependencies
run: poetry install
- name: Run unit tests
run: poetry run pytest src/tests
- name: Setup chromedriver
uses: nanasess/setup-chromedriver@v2
- run: |
export DISPLAY=:99
chromedriver --url-base=/wd/hub &
sudo Xvfb -ac :99 -screen 0 1280x1024x24 > /dev/null 2>&1 & # optional
- name: Run robot tests
run: bash run_robot_tests.sh
- name: Analysing the code with pylint
run: poetry run pylint src