Feature - Support Mermaid Output #26
This file contains hidden or 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
name: Python Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
test: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v4 | |
with: | |
python-version: ${{ matrix.python-version }} | |
- name: Install build dependencies | |
run: | | |
python -m pip install --upgrade pip | |
python -m pip install build setuptools wheel | |
- name: Install package dependencies | |
run: | | |
pip install pytest | |
pip install -r py_package/requirements.txt | |
- name: Install package in editable mode | |
run: | | |
cd py_package | |
pip install -e . | |
cd .. | |
- name: Setup test data | |
run: | | |
mkdir -p tests/test_data/inputs | |
cp -r examples/inputs/* tests/test_data/inputs/ | |
- name: Verify test data | |
run: | | |
ls -la tests/test_data/inputs/ | |
echo "Test data files:" | |
find tests/test_data/inputs/ -type f -exec ls -lh {} \; | |
- name: Run tests with pytest and coverage | |
run: | | |
python -m pytest -v tests/ --capture=no |