diff --git a/.github/workflows/assign.yml b/.github/workflows/assign.yml index a6d3f1f383751..a1812843b1a8f 100644 --- a/.github/workflows/assign.yml +++ b/.github/workflows/assign.yml @@ -4,11 +4,10 @@ on: types: created jobs: - one: + issue_assign: runs-on: ubuntu-latest steps: - if: github.event.comment.body == 'take' - name: run: | echo "Assigning issue ${{ github.event.issue.number }} to ${{ github.event.comment.user.login }}" curl -H "Authorization: token ${{ secrets.GITHUB_TOKEN }}" -d '{"assignees": ["${{ github.event.comment.user.login }}"]}' https://api.github.com/repos/${{ github.repository }}/issues/${{ github.event.issue.number }}/assignees diff --git a/.github/workflows/datamanger.yml b/.github/workflows/datamanger.yml index 28ce7bc5c0ef4..7e93696b3c317 100644 --- a/.github/workflows/datamanger.yml +++ b/.github/workflows/datamanger.yml @@ -49,6 +49,3 @@ jobs: run: | source activate pandas-dev ci/run_tests.sh - - - name: Print skipped tests - run: python ci/print_skipped.py diff --git a/.github/workflows/docbuild-and-upload.yml b/.github/workflows/docbuild-and-upload.yml index e8ed6d4545194..4cce75779d750 100644 --- a/.github/workflows/docbuild-and-upload.yml +++ b/.github/workflows/docbuild-and-upload.yml @@ -40,12 +40,7 @@ jobs: - name: Build documentation run: | source activate pandas-dev - doc/make.py --warnings-are-errors | tee sphinx.log ; exit ${PIPESTATUS[0]} - - # This can be removed when the ipython directive fails when there are errors, - # including the `tee sphinx.log` in te previous step (https://github.com/ipython/ipython/issues/11547) - - name: Check ipython directive errors - run: "! grep -B10 \"^<<<-------------------------------------------------------------------------$\" sphinx.log" + doc/make.py --warnings-are-errors - name: Install ssh key run: | diff --git a/.github/workflows/posix.yml b/.github/workflows/posix.yml index 4f3a06faf64af..4beba743209b6 100644 --- a/.github/workflows/posix.yml +++ b/.github/workflows/posix.yml @@ -150,9 +150,6 @@ jobs: path: test-data.xml if: failure() - - name: Print skipped tests - run: python ci/print_skipped.py - - name: Upload coverage to Codecov uses: codecov/codecov-action@v2 with: diff --git a/.github/workflows/python-dev.yml b/.github/workflows/python-dev.yml index fa1eee2db6fc3..988859ca4ac93 100644 --- a/.github/workflows/python-dev.yml +++ b/.github/workflows/python-dev.yml @@ -85,10 +85,6 @@ jobs: path: test-data.xml if: failure() - - name: Print skipped tests - run: | - python ci/print_skipped.py - - name: Report Coverage run: | coverage report -m diff --git a/ci/azure/posix.yml b/ci/azure/posix.yml index 02a4a9ad44865..9002f35376613 100644 --- a/ci/azure/posix.yml +++ b/ci/azure/posix.yml @@ -61,8 +61,3 @@ jobs: testResultsFiles: 'test-data.xml' testRunTitle: ${{ format('{0}-$(CONDA_PY)', parameters.name) }} displayName: 'Publish test results' - - - script: | - source activate pandas-dev - python ci/print_skipped.py - displayName: 'Print skipped tests' diff --git a/ci/azure/windows.yml b/ci/azure/windows.yml index 7061a266f28c7..836332251d7b3 100644 --- a/ci/azure/windows.yml +++ b/ci/azure/windows.yml @@ -79,8 +79,3 @@ jobs: testResultsFiles: 'test-data.xml' testRunTitle: ${{ format('{0}-$(CONDA_PY)', parameters.name) }} displayName: 'Publish test results' - - - bash: | - source activate pandas-dev - python ci/print_skipped.py - displayName: 'Print skipped tests' diff --git a/ci/print_skipped.py b/ci/print_skipped.py deleted file mode 100755 index 60e2f047235e6..0000000000000 --- a/ci/print_skipped.py +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env python3 -import os -import xml.etree.ElementTree as et - - -def main(filename): - if not os.path.isfile(filename): - raise RuntimeError(f"Could not find junit file {repr(filename)}") - - tree = et.parse(filename) - root = tree.getroot() - current_class = "" - for el in root.iter("testcase"): - cn = el.attrib["classname"] - for sk in el.findall("skipped"): - old_class = current_class - current_class = cn - if old_class != current_class: - yield None - yield { - "class_name": current_class, - "test_name": el.attrib["name"], - "message": sk.attrib["message"], - } - - -if __name__ == "__main__": - print("SKIPPED TESTS:") - i = 1 - for test_data in main("test-data.xml"): - if test_data is None: - print("-" * 80) - else: - print( - f"#{i} {test_data['class_name']}." - f"{test_data['test_name']}: {test_data['message']}" - ) - i += 1 diff --git a/ci/run_tests.sh b/ci/run_tests.sh index 203f8fe293a06..020a3ed7f265c 100755 --- a/ci/run_tests.sh +++ b/ci/run_tests.sh @@ -24,7 +24,7 @@ if [[ $(uname) == "Linux" && -z $DISPLAY ]]; then XVFB="xvfb-run " fi -PYTEST_CMD="${XVFB}pytest -m \"$PATTERN\" -n $PYTEST_WORKERS --dist=loadfile $TEST_ARGS $COVERAGE $PYTEST_TARGET" +PYTEST_CMD="${XVFB}pytest -r fEs -m \"$PATTERN\" -n $PYTEST_WORKERS --dist=loadfile $TEST_ARGS $COVERAGE $PYTEST_TARGET" if [[ $(uname) != "Linux" && $(uname) != "Darwin" ]]; then PYTEST_CMD="$PYTEST_CMD --ignore=pandas/tests/plotting/"