Repository navigation
Add functions pvgridder.extract_layer() and pvgridder.slice_vertical()
#89
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: 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 }} |