Files
PeakRDL-python-regmap/tests/run.sh
Byron Lathi 70b1fef2f2
Some checks failed
build / test (3.10) (push) Failing after 6s
build / test (3.11) (push) Failing after 5s
build / test (3.12) (push) Failing after 6s
build / test (3.13) (push) Failing after 6s
build / test (3.9) (push) Failing after 6s
build / lint (push) Successful in 7s
build / mypy (push) Successful in 8s
build / Build distributions (push) Has been skipped
build / deploy (push) Has been skipped
Create project
2025-11-23 16:59:17 -08:00

28 lines
457 B
Bash
Executable File

#!/bin/bash
set -e
cd "$(dirname "$0")"
# Initialize venv
python3 -m venv .venv
source .venv/bin/activate
# Install test dependencies
pip install -r requirements.txt
# Install dut
pip install -e "../[cli]"
# Run lint
pylint --rcfile pylint.rc ../src/peakrdl_python_regmap
# Run static type checking
mypy ../src/peakrdl_python_regmap
# Run unit tests
pytest -n auto --cov=peakrdl_python_regmap
# Generate coverage report
coverage html -i -d htmlcov