Skip to content

Remove CircleCI config #7

Remove CircleCI config

Remove CircleCI config #7

name: Automated Tests
on:
push:
branches: ["master"]
pull_request:
branches: ["master"]
env:
DB_HOST: localhost
DB_PASSWORD: ${{ secrets.DB_PASSWORD }}
SECRET_KEY: ${{ secrets.SECRET_KEY }}
USERNAME: root
jobs:
unittest:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.9]
services:
postgres:
image: postgres:16
env:
POSTGRES_PASSWORD: postgres
POSTGRES_DB: hawkpost_dev
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
redis:
image: redis:7
ports:
- 6379:6379
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip pipenv
pipenv install --dev
- name: Collect Static assets
run: |
pipenv run python manage.py collectstatic --no-input
- name: Run Tests
run: |
pipenv run python manage.py test