Skip to content

Merge pull request #5 from wtsi-npg/dependabot/pip/pytest-8.3.3 #13

Merge pull request #5 from wtsi-npg/dependabot/pip/pytest-8.3.3

Merge pull request #5 from wtsi-npg/dependabot/pip/pytest-8.3.3 #13

Workflow file for this run

name: "Unit tests"
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
defaults:
run:
shell: bash -l -e -o pipefail {0}
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: "Set up Python ${{ matrix.python-version }}"
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: "pip"
- name: "Setup Python dependencies"
run: |
pip install -r requirements.txt
pip install -r test-requirements.txt
- name: "Check code formatting [Black]"
run: |
black --check --diff ./src ./tests
- name: "Run tests"
run: |
pip install .
pytest --it