chore: Install pre-commit package in tests.yml #185
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 workflow will install Python dependencies, run pytests | |
name: ccdutils tests | |
on: push | |
jobs: | |
pytest: | |
name: Run unit tests | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Set up python | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
- run: | | |
pip install poetry | |
pip install pre-commit | |
poetry install --with tests | |
poetry run pre-commit install && pre-commit run --all | |
- run: poetry run pytest --cov=pdbeccdutils |