8000 Auto-cancel duplicate CI · matplotlib/pytest-mpl@32da10a · GitHub
[go: up one dir, main page]

Skip to content

Commit 32da10a

Browse files
committed
Auto-cancel duplicate CI
and remove unnecessary pytest version check I added earlier.
1 parent e57d11e commit 32da10a

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

.github/workflows/test_and_publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,10 @@ on:
1313
# Allow manual runs through the web UI
1414
workflow_dispatch:
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
test:
1822
uses: OpenAstronomy/github-actions-workflows/.github/workflows/tox.yml@v1

pytest_mpl/plugin.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,11 +57,7 @@
5757
Actual shape: {actual_shape}
5858
{actual_path}"""
5959

60-
_pytest_version = Version(pytest.__version__)
61-
PYTEST_LT_7 = _pytest_version < Version("7.0.0")
62-
PYTEST_GE_8_0 = any([_pytest_version.is_devrelease,
63-
_pytest_version.is_prerelease,
64-
_pytest_version >= Version('8.0')])
60+
PYTEST_LT_7 = Version(pytest.__version__) < Version("7.0.0")
6561

6662
# The following are the subsets of formats supported by the Matplotlib image
6763
# comparison machinery

0 commit comments

Comments
 (0)
0