Skip to content

Bump black from 22.3.0 to 24.3.0 in /requirements #109

Bump black from 22.3.0 to 24.3.0 in /requirements

Bump black from 22.3.0 to 24.3.0 in /requirements #109

Workflow file for this run

name: tests
on:
push:
pull_request:
workflow_dispatch:
jobs:
tests:
runs-on: ubuntu-latest
strategy:
matrix:
python:
- "3.7"
- "3.8"
- "3.9"
- "3.10"
- "3.11"
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- name: Cache python packages
uses: actions/cache@v3
env:
cache-name: test-python-packages
with:
path: '~/.local/**/site-packages'
key: ${{ runner.os }}-${{ matrix.python }}-${{ env.cache-name }}-${{ hashFiles('requirements/**/*.txt') }}
restore-keys: |
${{ runner.os }}-${{ matrix.python }}-${{ env.cache-name }}-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/tests.txt --user
pip install -r requirements/types.txt --user
pip install -r requirements/lint.txt --user
- name: Check with black
run: |
python -m black --check indi
- name: Check with isort
run: |
python -m isort --profile black indi
- name: Check with mypy
run: |
python -m mypy indi
- name: Test with pytest
run: |
python -m pytest tests