Update PyAlma for Jupyter notebook #57
This file contains hidden or 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: Run tests and compute coverage | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@v3 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: "3.10" | |
| - name: Install project with dependencies from pyproject.toml | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install . | |
| pip install coverage pytest pytest-mock | |
| - name: Run tests with coverage (fail if < 80%) | |
| run: | | |
| coverage run -m pytest --ignore=tests/integration | |
| coverage report --fail-under=80 | |
| coverage xml |