Skip to content

Commit

Permalink
Update testing-and-deployment.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
tkoyama010 authored Dec 27, 2023
1 parent 29897db commit ae786d0
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions .github/workflows/testing-and-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,49 @@ jobs:
strategy:
fail-fast: false

# see discussion at https://github.com/pyvista/pyvista/issues/2867
matrix:
include:
- python-version: '3.12'
vtk-version: 'latest'
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 2

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}

- uses: actions/cache@v3
with:
path: ~/.cache/pip
key: Python-${{ runner.os }}-${{ matrix.python-version }}-${{ matrix.vtk-version }}-${{ hashFiles('setup.py') }}-${{ hashFiles('requirements_test.txt') }}
restore-keys: |
Python-${{ runner.os }}-${{ matrix.python-version }}
- name: Set up vtk
if: ${{ matrix.vtk-version != 'latest' }}
run: pip install vtk==${{ matrix.vtk-version }}

- name: Install gmsh
run: |
sudo apt -y install libgl1-mesa-glx xvfb python-tk libglu1 libxcursor-dev libxft2 libxinerama1 libfltk1.3-dev libfreetype6-dev libgl1-mesa-dev libocct-foundation-dev libocct-data-exchange-dev
pip install gmsh
- name: Install Testing Requirements
run: pip install -r requirements_test.txt

- name: Unit Testing
run: |
export PYTHONPATH=. && xvfb-run python -m pytest -v --doctest-modules src/pvgmsh
Windows:
name: Windows Unit Testing
runs-on: windows-latest
strategy:
fail-fast: false

# see discussion at https://github.com/pyvista/pyvista/issues/2867
matrix:
include:
Expand Down

0 comments on commit ae786d0

Please sign in to comment.