Skip to content

Add functions pvgridder.extract_layer() and pvgridder.slice_vertical() #89

Add functions pvgridder.extract_layer() and pvgridder.slice_vertical()

Add functions pvgridder.extract_layer() and pvgridder.slice_vertical() #89

Workflow file for this run

name: Python package
on: [pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
vtk-version: ["9.4.0", "9.5.0"]
steps:
- uses: actions/checkout@v2
with:
lfs: true
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y libgl1-mesa-dev libglu1-mesa-dev libxt-dev xvfb
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install "vtk~=${{ matrix.vtk-version }}"
pip install .[full]
- name: Test with pytest
run: |
pip install pytest
pip install coverage
xvfb-run -a coverage run -m pytest
- name: Submit coverage
if: ${{ matrix.python-version == '3.12' }}
run: |
pip install codecov
codecov --token=${{ secrets.CODECOV_TOKEN }}