Skip to content

Commit ce8b4dc

Browse files
authored
Merge branch 'hjwp:master' into fix-numpy-iterables
2 parents da6d91f + e817937 commit ce8b4dc

File tree

3 files changed

+39
-2
lines changed

3 files changed

+39
-2
lines changed

.github/workflows/release.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
name: Release Package
2+
3+
on: [workflow_dispatch]
4+
5+
permissions:
6+
contents: read
7+
8+
jobs:
9+
build_package:
10+
name: Build Package
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v3
14+
- name: Build sdist and wheel
15+
run: pipx run build --sdist --wheel
16+
- uses: actions/upload-artifact@v3
17+
with:
18+
path: dist
19+
20+
pypi-publish:
21+
needs: [build_package]
22+
name: Upload release to PyPI
23+
runs-on: ubuntu-latest
24+
environment:
25+
name: pypi
26+
permissions:
27+
id-token: write
28+
steps:
29+
- uses: actions/download-artifact@v3
30+
with:
31+
name: artifact
32+
path: dist
33+
- name: Publish package distributions to PyPI
34+
uses: pypa/gh-action-pypi-publish@release/v1

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def read(fname):
1313

1414
setup(
1515
name="pytest-icdiff",
16-
version="0.6",
16+
version="0.7",
1717
author="Harry Percival",
1818
author_email="[email protected]",
1919
maintainer="Harry Percival",

tests/test_pytest_icdiff.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import icdiff
2+
from unittest import mock
3+
import pytest
24
import re
35
from pprintpp import pformat
46

@@ -8,6 +10,7 @@
810
ANSI_ESCAPE_RE = re.compile(r'(\x9B|\x1B\[)[0-?]*[ -/]*[@-~]')
911

1012

13+
1114
def test_short_dict(testdir):
1215
one = {
1316
1: "the number one",
@@ -286,7 +289,7 @@ def test_one():
286289
assert one == two
287290
"""
288291
)
289-
output = testdir.runpytest('-vv', '--color=yes').stdout.str()
292+
output = testdir.runpytest('-vv', '--color=yes', '-r=no').stdout.str()
290293
assert len(output.splitlines()) < 50
291294
assert "---" in output # context split marker
292295

0 commit comments

Comments
 (0)