Skip to content

Merge branch 'master' of https://github.com/PDBeurope/ccdutils into P… #190

Merge branch 'master' of https://github.com/PDBeurope/ccdutils into P…

Merge branch 'master' of https://github.com/PDBeurope/ccdutils into P… #190

Workflow file for this run

# 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