Skip to content

Images not generated due to errors #48

Images not generated due to errors

Images not generated due to errors #48

Workflow file for this run

name: Format, Type Check, and Test
on:
pull_request:
branches:
- main
- "release/**"
jobs:
format_type_check_and_test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: "3.10"
- name: Install redis
run: sudo apt-get install -y redis-tools redis-server
- name: Verify that redis is up
run: redis-cli ping
# Install everything.
- name: Install package and dependancies
run: |
python -m pip install --upgrade pip
pip install -e ./backend[dev]
- name: Run isort
run: isort ./backend --profile black
- name: Run Black
run: black ./backend --diff --check
- name: Run mypy
run: mypy ./backend --config-file ./backend/mypy.ini
- name: Run tests
run: |
set -a
source ./backend/envs/example.env
set +a
pytest ./backend