diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index bffe4f0..b8b0c5d 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -10,6 +10,7 @@ on: jobs: test: strategy: + fail-fast: false matrix: os: [ubuntu-latest, windows-latest] python-version: diff --git a/pytest_github_actions_annotate_failures/plugin.py b/pytest_github_actions_annotate_failures/plugin.py index cc16ae7..ae23581 100644 --- a/pytest_github_actions_annotate_failures/plugin.py +++ b/pytest_github_actions_annotate_failures/plugin.py @@ -1,6 +1,7 @@ from __future__ import annotations +import contextlib import os import sys from typing import TYPE_CHECKING @@ -111,7 +112,8 @@ def pytest_warning_recorded(self, warning_message, when, nodeid, location): # n if not rel_path.startswith(".."): filesystempath = rel_path else: - filesystempath = os.path.relpath(filesystempath) + with contextlib.suppress(ValueError): + filesystempath = os.path.relpath(filesystempath) workflow_command = _build_workflow_command( "warning",