Skip to content

Commit

Permalink
Merge branch 'hjwp:master' into fix-numpy-iterables
Browse files Browse the repository at this point in the history
  • Loading branch information
jamescooke authored Sep 15, 2023
2 parents da6d91f + e817937 commit ce8b4dc
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Release Package

on: [workflow_dispatch]

permissions:
contents: read

jobs:
build_package:
name: Build Package
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build sdist and wheel
run: pipx run build --sdist --wheel
- uses: actions/upload-artifact@v3
with:
path: dist

pypi-publish:
needs: [build_package]
name: Upload release to PyPI
runs-on: ubuntu-latest
environment:
name: pypi
permissions:
id-token: write
steps:
- uses: actions/download-artifact@v3
with:
name: artifact
path: dist
- name: Publish package distributions to PyPI
uses: pypa/gh-action-pypi-publish@release/v1
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def read(fname):

setup(
name="pytest-icdiff",
version="0.6",
version="0.7",
author="Harry Percival",
author_email="[email protected]",
maintainer="Harry Percival",
Expand Down
5 changes: 4 additions & 1 deletion tests/test_pytest_icdiff.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
import icdiff
from unittest import mock
import pytest
import re
from pprintpp import pformat

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



def test_short_dict(testdir):
one = {
1: "the number one",
Expand Down Expand Up @@ -286,7 +289,7 @@ def test_one():
assert one == two
"""
)
output = testdir.runpytest('-vv', '--color=yes').stdout.str()
output = testdir.runpytest('-vv', '--color=yes', '-r=no').stdout.str()
assert len(output.splitlines()) < 50
assert "---" in output # context split marker

Expand Down

0 comments on commit ce8b4dc

Please sign in to comment.