Skip to content

Scripts to project 3D and 4D maps to streamline points and perform math operations in space of streamline points #6

Scripts to project 3D and 4D maps to streamline points and perform math operations in space of streamline points

Scripts to project 3D and 4D maps to streamline points and perform math operations in space of streamline points #6

Workflow file for this run

name: Scilpy test suite
on:
push:
branches:
- master
pull_request_target:
branches:
- master
env:
MPLBACKEND: agg
OPENBLAS_NUM_THREADS: 1
jobs:
test:
runs-on: scilus-runners
steps:
- name: Checkout repository
uses: actions/checkout@v4.1.1
- name: Fetch python version from repository
id: python-selector
run: echo "python-version=$(cat .python-version)" >> $GITHUB_OUTPUT
- name: Set up Python for Scilpy
uses: actions/setup-python@v5.0.0
with:
python-version: ${{ steps.python-selector.outputs.python-version }}
cache: 'pip'
- 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
- name: Install Scilpy
run: |
python -m pip install --upgrade pip setuptools wheel
python -m pip install -e .
- name: Run tests
run: |
export C_INCLUDE_PATH=$pythonLocation/include/python${{ steps.python-selector.outputs.python-version }}:$C_INCLUDE_PATH
pytest --cov-report term-missing:skip-covered
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v3
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
with:
flags: unittests
name: scilpy-unittests-${{ github.run_id }}
verbose: true
directory: .test_reports/
fail_ci_if_error: true
root_dir: $GITHUB_WORKSPACE/scilpy/
- name: Upload test reports and coverage to artifacts
uses: actions/upload-artifact@v4.3.1
with:
name: test-reports
path: |
.test_reports/*