Skip to content

update python version #6

update python version

update python version #6

Workflow file for this run

name: Django Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
name: Running tests
services:
postgres_main:
image: postgres:12
env:
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: django-test
ports:
- 5432:5432
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Setup Python 3.11.2
uses: actions/setup-python@v2
with:
python-version: 3.11.2
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/production.txt
- name: Run Tests
env:
DB_HOST: localhost
run: |
cd src
python manage.py test