Skip to content

update for new Pika_DS structure (#8) #111

update for new Pika_DS structure (#8)

update for new Pika_DS structure (#8) #111

Workflow file for this run

name: CI
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Cache pip dependencies
uses: actions/cache@v2
with:
path: ~/.cache/pip
key: ${{ runner.os }}-pip-${{ hashFiles('**/requirements/requirements_dev.txt') }}
restore-keys: |
${{ runner.os }}-pip-
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements/requirements_dev.txt
- name: Lint with black
run: |
black --check . --line-length 120
- name: Lint with flake8
run: |
flake8 . --exclude=pika/model/original_phi
- name: Type check with mypy
run: |
mypy . --install-types --non-interactive --show-traceback
- name: Run tests
run: |
coverage run -m unittest
coverage report