Detailed trivia no segments #24
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. Only because I'm too lazy to seperate out testing vs deployment dependancies. Maybe do this later. | |
- name: Install package and dependancies | |
run: | | |
python -m pip install --upgrade pip | |
pip install -e .[dev] | |
- name: Run isort | |
run: isort . --profile black | |
- name: Run Black | |
run: black . --diff --check | |
- name: Run mypy | |
run: mypy . | |
- name: Run tests | |
run: | | |
set -a | |
source envs/example.env | |
set +a | |
pytest . |