[wip] Add tests #179
Workflow file for this run
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
# This action runs: | |
# | |
# 1. Linting with black | |
# | |
# 2. Docstring style checking with pydocstyle | |
# Note: This uses Google-style docstring convention | |
# Ref: https://google.github.io/styleguide/pyguide.html | |
name: Lint | |
on: | |
push: | |
paths: | |
- "sleap_anipose/**" | |
- "tests/**" | |
- ".github/workflows/lint.yml" | |
jobs: | |
lint: | |
name: Lint | |
runs-on: "ubuntu-22.04" | |
steps: | |
- name: Checkout repo | |
uses: actions/[email protected] | |
- name: Set up Python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
pip install --editable .[dev] | |
- name: Run Black | |
run: | | |
black --check sleap_anipose tests | |
- name: Run pydocstyle | |
run: | | |
pydocstyle --convention=google sleap_anipose/ |