Skip to content

Commit

Permalink
TEMP
Browse files Browse the repository at this point in the history
  • Loading branch information
matrss committed Feb 27, 2024
1 parent ae89581 commit 24510c8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 9 deletions.
21 changes: 12 additions & 9 deletions .github/workflows/testing-all-oses.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,19 @@ jobs:
strategy:
fail-fast: false
matrix:
os: ["macos-12", "macos-14", "ubuntu-latest", "windows-latest"]
os: ["macos-14", "ubuntu-latest"]
order: ["normal", "reverse"]
headless-method: ["env QT_QPA_PLATFORM=offscreen"]
include:
- os: "ubuntu-latest"
order: "normal"
headless-method: "xvfb-run"
- os: "ubuntu-latest"
order: "reverse"
headless-method: "xvfb-run"
# os: ["macos-12", "macos-14", "ubuntu-latest", "windows-latest"]
# order: ["normal", "reverse"]
# headless-method: ["env QT_QPA_PLATFORM=offscreen"]
# include:
# - os: "ubuntu-latest"
# order: "normal"
# headless-method: "xvfb-run"
# - os: "ubuntu-latest"
# order: "reverse"
# headless-method: "xvfb-run"

steps:
# This workaround is necessary because PyFilesystem2 throws an InvalidCharsInPath error:
Expand Down Expand Up @@ -59,7 +62,7 @@ jobs:
cache-environment-key: environment-${{ steps.year-and-week.outputs.year-and-week }}
- name: Run tests
timeout-minutes: 5
run: micromamba run -n ci ${{ matrix.headless-method }} pytest -v -n logical --durations=20 --cov=mslib
run: micromamba run -n ci ${{ matrix.headless-method }} pytest -s -v -n logical --durations=20 --cov=mslib
${{ (matrix.order == 'normal' && ' ') || (matrix.order == 'reverse' && '--reverse') }} tests
- name: Collect coverage
env:
Expand Down
4 changes: 4 additions & 0 deletions tests/_test_mswms/test_mss_plot_driver.py
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,10 @@ def test_VS_gallery_template(self):
# ToDo Test Data have to be written to a random tmp dir and that may become purged afterwards
templates_location = os.path.join(mslib.mswms.gallery_builder.DOCS_LOCATION, "plot_examples")
sys.path.append(templates_location)
import sys
import pathlib
print(f"{templates_location=}", file=sys.stderr)
print(f'{pathlib.Path(templates_location).rglob("*")=}', file=sys.stderr)
from VS_template import VS_Template

img = self.plot(VS_Template(driver=self.vsec))
Expand Down

0 comments on commit 24510c8

Please sign in to comment.