Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[DO NOT MERGE] Testing pytest regression for #11895 #153

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
180 changes: 91 additions & 89 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -149,22 +149,23 @@ jobs:
needs:
- build_purepy_wheels
strategy:
fail-fast: false
matrix:
# Xcookie generates an explicit list of environments that will be used
# for testing instead of using the more concise matrix notation.
include:
- python-version: '3.6'
install-extras: tests-strict,runtime-strict
os: ubuntu-20.04
arch: auto
- python-version: '3.6'
install-extras: tests-strict,runtime-strict
os: macOS-latest
arch: auto
- python-version: '3.6'
install-extras: tests-strict,runtime-strict
os: windows-latest
arch: auto
# - python-version: '3.6'
# install-extras: tests-strict,runtime-strict
# os: ubuntu-20.04
# arch: auto
# - python-version: '3.6'
# install-extras: tests-strict,runtime-strict
# os: macOS-latest
# arch: auto
# - python-version: '3.6'
# install-extras: tests-strict,runtime-strict
# os: windows-latest
# arch: auto
- python-version: '3.12'
install-extras: tests-strict,runtime-strict,optional-strict
os: ubuntu-latest
Expand All @@ -185,22 +186,22 @@ jobs:
install-extras: tests
os: windows-latest
arch: auto
- python-version: '3.6'
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.7'
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.8'
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.9'
install-extras: tests,optional
os: windows-latest
arch: auto
# - python-version: '3.6'
# install-extras: tests,optional
# os: windows-latest
# arch: auto
# - python-version: '3.7'
# install-extras: tests,optional
# os: windows-latest
# arch: auto
# - python-version: '3.8'
# install-extras: tests,optional
# os: windows-latest
# arch: auto
# - python-version: '3.9'
# install-extras: tests,optional
# os: windows-latest
# arch: auto
- python-version: '3.10'
install-extras: tests,optional
os: windows-latest
Expand All @@ -213,30 +214,30 @@ jobs:
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: pypy-3.7
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.6'
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.7'
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.8'
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.9'
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.10'
install-extras: tests,optional
os: windows-latest
arch: auto
# - python-version: pypy-3.7
# install-extras: tests,optional
# os: windows-latest
# arch: auto
# - python-version: '3.6'
# install-extras: tests,optional
# os: windows-latest
# arch: auto
# - python-version: '3.7'
# install-extras: tests,optional
# os: windows-latest
# arch: auto
# - python-version: '3.8'
# install-extras: tests,optional
# os: windows-latest
# arch: auto
# - python-version: '3.9'
# install-extras: tests,optional
# os: windows-latest
# arch: auto
# - python-version: '3.10'
# install-extras: tests,optional
# os: windows-latest
# arch: auto
- python-version: '3.11'
install-extras: tests,optional
os: windows-latest
Expand All @@ -245,26 +246,26 @@ jobs:
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: pypy-3.7
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.6'
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.7'
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.8'
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: '3.9'
install-extras: tests,optional
os: windows-latest
arch: auto
# - python-version: pypy-3.7
# install-extras: tests,optional
# os: windows-latest
# arch: auto
# - python-version: '3.6'
# install-extras: tests,optional
# os: windows-latest
# arch: auto
# - python-version: '3.7'
# install-extras: tests,optional
# os: windows-latest
# arch: auto
# - python-version: '3.8'
# install-extras: tests,optional
# os: windows-latest
# arch: auto
# - python-version: '3.9'
# install-extras: tests,optional
# os: windows-latest
# arch: auto
- python-version: '3.10'
install-extras: tests,optional
os: windows-latest
Expand All @@ -277,22 +278,22 @@ jobs:
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: pypy-3.7
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: pypy-3.7
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: pypy-3.7
install-extras: tests,optional
os: windows-latest
arch: auto
- python-version: pypy-3.7
install-extras: tests,optional
os: windows-latest
arch: auto
# - python-version: pypy-3.7
# install-extras: tests,optional
# os: windows-latest
# arch: auto
# - python-version: pypy-3.7
# install-extras: tests,optional
# os: windows-latest
# arch: auto
# - python-version: pypy-3.7
# install-extras: tests,optional
# os: windows-latest
# arch: auto
# - python-version: pypy-3.7
# install-extras: tests,optional
# os: windows-latest
# arch: auto
steps:
- name: Checkout source
uses: actions/checkout@v4
Expand Down Expand Up @@ -326,6 +327,7 @@ jobs:
export WHEEL_FPATH=$(python -c "import pathlib; print(str(sorted(pathlib.Path('wheelhouse').glob('xdoctest*.whl'))[-1]).replace(chr(92), chr(47)))")
export MOD_VERSION=$(python -c "from pkginfo import Wheel; print(Wheel('$WHEEL_FPATH').version)")
pip install --prefer-binary "xdoctest[$INSTALL_EXTRAS]==$MOD_VERSION" -f wheelhouse
pip install git+https://github.com/nicoddemus/pytest@11895-short-path-win
echo "Install finished."
- name: Test wheel ${{ matrix.install-extras }}
shell: bash
Expand Down Expand Up @@ -483,4 +485,4 @@ jobs:
# --secret=EROTEMIC_TWINE_USERNAME=$EROTEMIC_TWINE_USERNAME \
# --secret=EROTEMIC_CI_SECRET=$EROTEMIC_CI_SECRET \
# --secret=EROTEMIC_TEST_TWINE_USERNAME=$EROTEMIC_TEST_TWINE_USERNAME \
# --secret=EROTEMIC_TEST_TWINE_PASSWORD=$EROTEMIC_TEST_TWINE_PASSWORD
# --secret=EROTEMIC_TEST_TWINE_PASSWORD=$EROTEMIC_TEST_TWINE_PASSWORD
11 changes: 0 additions & 11 deletions src/xdoctest/utils/util_path.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,19 +34,8 @@ def __del__(self):

def ensure(self):
import tempfile
import sys
if not self.dpath:
dpath = tempfile.mkdtemp()
if sys.platform.startswith('win32'):
# Force a long path
# References:
# https://stackoverflow.com/questions/11420689/how-to-get-long-file-system-path-from-python-on-windows
from ctypes import create_unicode_buffer, windll
BUFFER_SIZE = 500
buffer = create_unicode_buffer(BUFFER_SIZE)
get_long_path_name = windll.kernel32.GetLongPathNameW
get_long_path_name(dpath, buffer, BUFFER_SIZE)
dpath = buffer.value
self.dpath = dpath
return self.dpath

Expand Down
Loading