Skip to content

Updated precommit. #367

Updated precommit.

Updated precommit. #367

Workflow file for this run

# This pipeline checks whether the package
# installs properly, passes unit tests and whether
# the code formatting is right.
name: build
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: [3.8]
steps:
- uses: actions/checkout@v2
- uses: psf/black@stable
with:
version: "22.10.0"
- uses: actions/setup-python@v2
with:
python-version: "3.8"
cache: "pip"
- name: Install the module
run: pip install ".[test]"
- name: Run unit tests
run: pytest
- name: Install dev dependencies
run: pip install -r requirements-dev.txt
- name: Run Flake8 check
run: flake8
- name: Run pytype check
run: pytype
- name: Dependencies caching looks right
run: python .ci/check-requirements-cache.py