Github action #23
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: '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] | |
ground_slash init | |
- name: Pytest & coverage | |
shell: bash | |
run: | | |
pytest src/tests/ |