Merge branch 'master' of https://github.com/PDBeurope/ccdutils into P… #190
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" | |
- name: Install poetry | |
uses: abatilo/actions-poetry@v2 | |
- name: Define a cache for the virtual environment based on the dependencies lock file | |
uses: actions/cache@v3 | |
with: | |
path: ./.venv | |
key: venv-${{ hashFiles('poetry.lock') }} | |
- run: | | |
poetry install --with tests | |
poetry run pre-commit install && pre-commit run --all | |
- run: poetry run pytest --cov=pdbeccdutils |