Create GPL LICENSE to use Gmsh #127
Workflow file for this run
This file contains 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: Unit Testing and Deployment | |
on: | |
pull_request: | |
workflow_dispatch: | |
schedule: | |
- cron: "0 4 * * *" | |
push: | |
tags: | |
- "*" | |
branches: | |
- main | |
concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | |
cancel-in-progress: true | |
env: | |
ALLOW_PLOTTING: true | |
SHELLOPTS: 'errexit:pipefail' | |
jobs: | |
Linux: | |
name: Linux 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.11' | |
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 |