Skip to content

Pre-push hook

Pre-push hook #16

Workflow file for this run

name: 'Unit tests'
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
cache: 'pip'
cache-dependency-path: |
**/pyproject.toml
- name: Install library and dependencies
shell: bash
run: |
python -m pip install --upgrade pip
pip install .[dev]
- name: Pytest & coverage
shell: bash
run: |
pytest --cov-config=.coveragerc --cov=ground_slash src/tests/
# - name: Coverage badge
# uses: tj-actions/coverage-badge-py@v2
# with:
# output: coverage.svg
# - name: Add badge to commit
# uses: EndBug/add-and-commit@v9
# with:
# add: 'coverage.svg'
# commit: --signoff