Files
PeakRDL-python-regmap/tests/run.sh
Byron Lathi 76893af88a
Some checks failed
build / test (3.10) (push) Failing after 5s
build / test (3.11) (push) Failing after 4s
build / test (3.12) (push) Failing after 5s
build / test (3.13) (push) Failing after 4s
build / test (3.9) (push) Failing after 5s
build / lint (push) Failing after 5s
build / mypy (push) Failing after 5s
build / Build distributions (push) Has been skipped
build / test (3.10) (release) Failing after 5s
build / test (3.11) (release) Failing after 4s
build / test (3.12) (release) Failing after 5s
build / test (3.13) (release) Failing after 5s
build / test (3.9) (release) Failing after 5s
build / lint (release) Failing after 4s
build / mypy (release) Failing after 5s
build / Build distributions (release) Has been skipped
build / deploy (push) Has been skipped
build / deploy (release) Has been skipped
Create project
2025-11-23 16:56:53 -08:00

28 lines
436 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
# Run static type checking
mypy ../src/peakrdl_python
# Run unit tests
pytest -n auto --cov=peakrdl_python
# Generate coverage report
coverage html -i -d htmlcov