Fix compile warning in from_raw_data_to_tractogram #2
Workflow file for this run
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: Tutorials | ||
|
Check failure on line 1 in .github/workflows/tutorials.yml
|
||
| on: | ||
| push: | ||
| branches: | ||
| - master | ||
| pull_request: | ||
| branches: | ||
| - master | ||
| merge_group: | ||
| concurrency: | ||
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | ||
| cancel-in-progress: true | ||
| jobs: | ||
| run-tutorials: | ||
| runs-on: scilus-large | ||
| if: github.repository == 'scilus/scilpy' | ||
| steps: | ||
| - name: Checkout repository at merge | ||
| - uses: actions/checkout@v4 | ||
| - name: Fetch python version from repository | ||
| id: python-selector | ||
| run: echo "python-version=$(head -1 .python-version)" >> $GITHUB_OUTPUT | ||
| - name: Set up Python and uv for Scilpy | ||
| uses: astral-sh/setup-uv@v6.4.3 | ||
| with: | ||
| python-version: ${{ steps.python-selector.outputs.python-version }} | ||
| activate-environment: true | ||
| enable-cache: true | ||
| - name: Install non-python dependencies | ||
| run: | | ||
| sudo apt-get update | ||
| sudo apt-get install -y \ | ||
| build-essential \ | ||
| curl \ | ||
| git \ | ||
| libblas-dev \ | ||
| liblapack-dev \ | ||
| libfreetype6-dev \ | ||
| libdrm-dev \ | ||
| libgl1-mesa-dev \ | ||
| libosmesa6-dev | ||
| - name: stdlib checkout | ||
| if: ${{ !contains(steps.python-selector.outputs.python-version, '3.12') }} | ||
| run: | | ||
| echo "SETUPTOOLS_USE_DISTUTILS=stdlib" >> "$GITHUB_ENV" | ||
| - name: Install Scilpy | ||
| run: | | ||
| uv pip install --upgrade pip wheel | ||
| uv pip install --upgrade "setuptools<71.0.0" | ||
| uv pip install -e . | ||
| # TODO: to adapt once Scilpy passes to VTK 9.4.0, which selects OSMesa at runtime | ||
| # https://discourse.vtk.org/t/status-update-runtime-opengl-render-window-selection-in-vtk/14583 | ||
| VTK_VERSION=$(cat pyproject.toml | grep 'vtk==' | sed 's/vtk==//g' | sed 's/\"//g' ) | ||
| uv pip install --extra-index-url https://wheels.vtk.org vtk-osmesa==$VTK_VERSION | ||
| uv pip install pytest-xdist pytest-cov | ||
| - name: Run tutorial scripts | ||
| run: | | ||
| chmod +x docs/source/documentation/*/*.sh | ||
| # All our script use the tutorial data | ||
| wget -O WB-common.zip https://scil.usherbrooke.ca/scil_test_data/dvc-store/files/md5/21/0b52975dc2b84d94426166e74245a3 | ||
| unzip WB-common.zip | ||
| rm WB-common.zip | ||
| here=`pwd` | ||
| input_path=$here/WB-common | ||
| for script in docs/source/documentation/*/*.sh; | ||
| do | ||
| echo "Running $script..." | ||
| # Create a temporary output path | ||
| tmpdir=$(mktemp -d) | ||
| cd "$tmpdir" | ||
| output_path=$tmpdir | ||
| # We make sure that all our scripts receive as input the path to WB-common | ||
| # as the path to the (temporary) output data. | ||
| bash "$script" $input_path $output_path | ||
| done | ||