Added signals to people app to create a user instance after person in… #44
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: Django CI | |
on: | |
push: | |
branches: [ "main" ] | |
pull_request: | |
branches: [ "main" ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
environment: DEV_ENV | |
strategy: | |
max-parallel: 4 | |
matrix: | |
python-version: ["3.10"] | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v3 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install Poetry | |
run: curl -sSL https://install.python-poetry.org | python - | |
- name: Set Environment Variables | |
env: | |
SECRET_KEY: ${{ secrets.SECRET_KEY }} | |
run: echo "SECRET_KEY=${SECRET_KEY}" > ./envs/.env | |
- name: Install Dependencies | |
run: poetry install | |
- name: Run Tests | |
run: poetry run python manage.py test |