[pre-commit.ci] auto fixes from pre-commit.com hooks #3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI-UnitTests | |
on: [push] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
# services: | |
# postgres: | |
# image: postgres:9.6 | |
# env: | |
# POSTGRES_DB: default | |
# POSTGRES_USER: postgres | |
# ports: | |
# - 5432:5432 | |
# options: >- | |
# --health-cmd pg_isready | |
# --health-interval 10s | |
# --health-timeout 5s | |
# --health-retries 5 | |
steps: | |
- name: Check out source repository | |
uses: actions/checkout@v3 | |
- name: Set up Python environment | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- name: Install dependencies | |
run: | | |
pip install --upgrade pip wheel setuptools | |
pip install django==3.2 | |
pip install dj-database-url | |
pip install psycopg2 | |
- name: Run tests | |
run: python -m runtests |