Skip to content

ENH: latform-graph file tree #51

ENH: latform-graph file tree

ENH: latform-graph file tree #51

Workflow file for this run

name: Test suite
on:
pull_request:
push:
release:
types:
- published
jobs:
pytest-conda:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- uses: ./.github/actions/conda-setup
with:
extra_packages: pytao
- uses: ./.github/actions/bmad-setup # -> sets ACC_ROOT_DIR
- name: Run unit tests
shell: bash -l -e -o pipefail {0}
run: |
set -e -o pipefail
echo -e '## Test results\n\n```' >> "$GITHUB_STEP_SUMMARY"
pytest -v --cov=src/ 2>&1 | tee -a "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"
pytest-pip:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v5
with:
fetch-depth: 0
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install .[test,doc]
- name: Run unit tests
shell: bash -l -e -o pipefail {0}
run: |
echo -e '## Test results\n\n```' >> "$GITHUB_STEP_SUMMARY"
pytest -v --cov=src/ 2>&1 | tee -a "$GITHUB_STEP_SUMMARY"
echo '```' >> "$GITHUB_STEP_SUMMARY"