Skip to content

Commit c97b282

Browse files
abravalherijaraco
authored andcommitted
[CI] Address problems with cygwin (pypa#4832, pypa/distutils#328)
1 parent c2bf198 commit c97b282

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,14 +112,19 @@ jobs:
112112
python${{ matrix.python }},
113113
python${{ matrix.python }}-devel,
114114
python${{ matrix.python }}-pytest,
115-
python${{ matrix.python }}-tox,
115+
python${{ matrix.python }}-pip,
116116
gcc-core,
117117
gcc-g++,
118118
ncompress
119119
git
120+
- name: Install tox using pip
121+
shell: C:\cygwin\bin\env.exe CYGWIN_NOWINPATH=1 CHERE_INVOKING=1 C:\cygwin\bin\bash.exe -leo pipefail -o igncr {0}
122+
run: |
123+
# Workaround for https://github.com/pypa/setuptools/issues/4831
124+
python -m pip install tox
120125
- name: Run tests
121126
shell: C:\cygwin\bin\env.exe CYGWIN_NOWINPATH=1 CHERE_INVOKING=1 C:\cygwin\bin\bash.exe -leo pipefail -o igncr {0}
122-
run: tox
127+
run: python -m tox
123128

124129
test_msys2_mingw:
125130
strategy:

0 commit comments

Comments
 (0)