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 c908806 commit 793db45
Showing 1 changed file with 3 additions and 47 deletions.
50 changes: 3 additions & 47 deletions .github/workflows/testing-and-deployment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,57 +20,13 @@ env:
SHELLOPTS: 'errexit:pipefail'

jobs:
Linux:
name: Linux Unit Testing
Unit_Testing:
name: Unit Testing
runs-on: ubuntu-latest
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:
os: [ubuntu-latest]
include:
- python-version: '3.12'
vtk-version: 'latest'
Expand Down

0 comments on commit 793db45

Please sign in to comment.