Skip to content

hide add/edit event links if not logged in #98

hide add/edit event links if not logged in

hide add/edit event links if not logged in #98

Workflow file for this run

# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
name: Run tests
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
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@v3
with:
python-version: "3.10"
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/requirements.txt
pip install -r requirements/dev-requirements.txt
- name: lint
run: |
make lint
- name: create database
run: |
psql -h localhost -c "CREATE DATABASE local_plans_test WITH TEMPLATE postgres" -U postgres
env:
PGPASSWORD: postgres
- name: test with pytest
run: |
playwright install chromium
pytest