New release #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 . |