Skip to content

[pre-commit.ci] pre-commit autoupdate #664

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #664

Workflow file for this run

name: Run tests
on:
pull_request:
branches:
- main
- develop
push:
branches:
- main
- develop
jobs:
build:
env:
ENVIRONMENT: 'test'
DJANGO_SETTINGS_MODULE: 'indymeet.settings.test'
DATABASE_URL: "postgres://djangonaut:djangonaut@localhost:5432/djangonaut-space"
DEBUG: False
SECRET_KEY: "hunter2"
RECAPTCHA_PUBLIC_KEY: "dummy_value"
RECAPTCHA_PRIVATE_KEY: "dummy_value"
runs-on: ubuntu-latest
services:
pg:
image: postgres
ports:
- 5432:5432
env:
POSTGRES_USER: "djangonaut"
POSTGRES_PASSWORD: "djangonaut"
POSTGRES_DB: "djangonaut-space"
steps:
- uses: actions/checkout@v4
- name: Set up Python version
uses: actions/setup-python@v5
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/requirements-test.txt
- name: Run tests
run: pytest