Skip to content

fix password reset confirm #71

fix password reset confirm

fix password reset confirm #71

Workflow file for this run

name: Tests
env:
COVERAGE_THRESHOLD: 95
on:
push:
jobs:
test:
runs-on: ubuntu-latest
env:
SECRET_KEY: dummy
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
POSTGRES_DB: postgres
POSTGRES_HOST: postgres
POSTGRES_PORT: 5432
steps:
- uses: actions/checkout@v2
- name: Build project
run: docker-compose build
- name: Migration check
run: docker-compose run --entrypoint="" --no-deps web python manage.py makemigrations --check
- name: Tests
run: docker-compose run --entrypoint="/test.sh" -e COVERAGE_THRESHOLD=$COVERAGE_THRESHOLD -u root web
services:
postgres:
image: postgres:15.1-alpine
ports:
- 5432:5432
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
env:
POSTGRES_PASSWORD: postgres
test_isort:
runs-on: ubuntu-latest
steps:
- name: CheckOut Repo
uses: actions/checkout@v2
- name: Run the isort
run: |
pip install isort
cd web
isort . --check
test_black:
runs-on: ubuntu-latest
steps:
- name: CheckOut Repo
uses: actions/checkout@v2
- name: Run the black
id: tests
run: |
pip install black
cd web
black . --check
test_flake8:
runs-on: ubuntu-latest
steps:
- name: CheckOut Repo
uses: actions/checkout@v2
- name: Run the black
run: |
pip install flake8
cd web
flake8 .