Polyline images and animations #43
Workflow file for this run
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: 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 |