-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into dependabot/pip/coverage-7.5.3
- Loading branch information
Showing
11 changed files
with
305 additions
and
337 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,24 @@ | ||
documentation: | ||
- any: | ||
- changed-files: | ||
- any-glob-to-any-file: 'doc/**/*' | ||
- any-glob-to-any-file: 'examples/**/*' | ||
- any-glob-to-any-file: './*.md' | ||
- any-glob-to-any-file: './*.rst' | ||
- any: | ||
- changed-files: | ||
- any-glob-to-any-file: "doc/**/*" | ||
- any-glob-to-any-file: "examples/**/*" | ||
- any-glob-to-any-file: "./*.md" | ||
- any-glob-to-any-file: "./*.rst" | ||
maintenance: | ||
- any: | ||
- changed-files: | ||
- any-glob-to-any-file: '.github/**/*' | ||
- any-glob-to-any-file: 'codecov.yml' | ||
- any-glob-to-any-file: '.flake8' | ||
- any-glob-to-any-file: '.coveragerc' | ||
- any-glob-to-any-file: '.codecimate.yml' | ||
- any-glob-to-any-file: 'ignore_words.txt' | ||
- any-glob-to-any-file: 'mypy.ini' | ||
- any-glob-to-any-file: 'pyproject.toml' | ||
- any-glob-to-any-file: 'setup.py' | ||
- any: | ||
- changed-files: | ||
- any-glob-to-any-file: ".github/**/*" | ||
- any-glob-to-any-file: "codecov.yml" | ||
- any-glob-to-any-file: ".flake8" | ||
- any-glob-to-any-file: ".coveragerc" | ||
- any-glob-to-any-file: ".codecimate.yml" | ||
- any-glob-to-any-file: "ignore_words.txt" | ||
- any-glob-to-any-file: "mypy.ini" | ||
- any-glob-to-any-file: "pyproject.toml" | ||
- any-glob-to-any-file: "setup.py" | ||
dependencies: | ||
- any: | ||
- changed-files: | ||
- any-glob-to-any-file: 'requirements*' | ||
- any-glob-to-any-file: 'environment.yml' | ||
- any: | ||
- changed-files: | ||
- any-glob-to-any-file: "requirements*" | ||
- any-glob-to-any-file: "environment.yml" |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,7 +15,7 @@ concurrency: | |
|
||
env: | ||
ALLOW_PLOTTING: true | ||
SHELLOPTS: 'errexit:pipefail' | ||
SHELLOPTS: "errexit:pipefail" | ||
|
||
jobs: | ||
doc: | ||
|
@@ -27,16 +27,16 @@ jobs: | |
- name: Set up Python 3.11 | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
cache: 'pip' | ||
python-version: "3.11" | ||
cache: "pip" | ||
cache-dependency-path: pyproject.toml | ||
|
||
- name: Install pytest-pyvista with test dependencies | ||
run: pip install .[docs] 'pyvista>=0.37' | ||
|
||
- uses: awalsh128/[email protected] | ||
with: | ||
packages: libgl1-mesa-glx xvfb | ||
packages: libosmesa6-dev libgl1-mesa-dev python3-tk pandoc git-restore-mtime | ||
version: 3.0 | ||
|
||
- name: Build Documentation | ||
|
@@ -59,24 +59,22 @@ jobs: | |
|
||
matrix: | ||
include: | ||
- python-version: '3.8' | ||
vtk-version: '9.0.3' | ||
- python-version: '3.9' | ||
vtk-version: '9.1' | ||
- python-version: '3.10' | ||
vtk-version: '9.2.2' | ||
- python-version: '3.11' | ||
vtk-version: 'latest' | ||
- python-version: '3.12' | ||
vtk-version: 'latest' | ||
- python-version: "3.9" | ||
vtk-version: "9.1" | ||
- python-version: "3.10" | ||
vtk-version: "9.2.2" | ||
- python-version: "3.11" | ||
vtk-version: "latest" | ||
- python-version: "3.12" | ||
vtk-version: "latest" | ||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Set up Python ${{ matrix.python-version }} | ||
uses: actions/setup-python@v5 | ||
with: | ||
python-version: ${{ matrix.python-version }} | ||
cache: 'pip' | ||
cache: "pip" | ||
cache-dependency-path: pyproject.toml | ||
|
||
- name: Install pytest-pyvista with test dependencies | ||
|
@@ -93,7 +91,7 @@ jobs: | |
|
||
- uses: awalsh128/[email protected] | ||
with: | ||
packages: libgl1-mesa-glx xvfb python-tk | ||
packages: libosmesa6-dev libgl1-mesa-dev python3-tk pandoc git-restore-mtime | ||
version: 3.0 | ||
|
||
- name: Software Report | ||
|
@@ -106,15 +104,14 @@ jobs: | |
run: xvfb-run coverage run -m --source=pytest_pyvista --module pytest --verbose . | ||
- uses: codecov/codecov-action@v4 | ||
if: matrix.python-version == '3.9' | ||
name: 'Upload coverage to CodeCov' | ||
name: "Upload coverage to CodeCov" | ||
|
||
release: | ||
name: Release | ||
if: | | ||
github.event_name == 'push' && | ||
contains(github.ref, 'refs/tags') | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
|
@@ -149,20 +146,20 @@ jobs: | |
downstream: | ||
name: Downstream tests | ||
runs-on: ubuntu-20.04 # matching pyvista | ||
runs-on: ubuntu-20.04 # matching pyvista | ||
steps: | ||
- uses: actions/checkout@v4 | ||
- uses: actions/setup-python@v5 | ||
with: | ||
python-version: '3.11' | ||
python-version: "3.11" | ||
|
||
- run: git clone --depth=1 https://github.com/pyvista/pyvista.git --branch main --single-branch | ||
|
||
- name: Install pyvista | ||
run: pip install -ve . | ||
working-directory: pyvista | ||
- name: Install pyvista test requirements | ||
run: pip install -v -r requirements_test.txt | ||
run: pip install -v pyvista[test] | ||
working-directory: pyvista | ||
- name: Install pytest-pyvista | ||
run: pip install -ve . | ||
|
@@ -172,11 +169,11 @@ jobs: | |
which python | ||
pip list | ||
working-directory: pyvista | ||
|
||
- name: Unit Testing | ||
run: xvfb-run python -m pytest --fail_extra_image_cache -v --generated_image_dir gen_dir tests/plotting/test_plotting.py | ||
working-directory: pyvista | ||
|
||
- name: Upload generated image artifact | ||
if: ${{ failure() }} | ||
uses: actions/upload-artifact@v4 | ||
|
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
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
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
Oops, something went wrong.