Skip to content

Spelling changed from Celcius to Celsius #20

Spelling changed from Celcius to Celsius

Spelling changed from Celcius to Celsius #20

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. 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 .