Skip to content

New release

New release #40

Workflow file for this run

name: tests
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build-n-test:
name: Install and test the package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set up Python 3.9
uses: actions/setup-python@v2
with:
python-version: "3.9"
- name: Install the package locally
run: |
python -m pip install --upgrade pip
pip install .
- name: Install dependencies for testing
run: |
pip install pytest-cov
pip install black
- name: Test with pytest
run: |
pytest --cov
- name: Check code format
run: |
black --check .