Skip to content

Commit 9e707f0

Browse files
committed
CI: add msys2 mingw test
1 parent 571f761 commit 9e707f0

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

.github/workflows/main.yml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,45 @@ jobs:
115115
shell: C:\cygwin\bin\env.exe CYGWIN_NOWINPATH=1 CHERE_INVOKING=1 C:\cygwin\bin\bash.exe -leo pipefail -o igncr {0}
116116
run: tox
117117

118+
test_msys2_mingw:
119+
strategy:
120+
matrix:
121+
include:
122+
- { sys: mingw64, env: x86_64 }
123+
- { sys: mingw32, env: i686 }
124+
- { sys: ucrt64, env: ucrt-x86_64 }
125+
- { sys: clang64, env: clang-x86_64 }
126+
runs-on: windows-latest
127+
steps:
128+
- uses: actions/checkout@v4
129+
- uses: msys2/setup-msys2@v2
130+
with:
131+
msystem: ${{matrix.sys}}
132+
install: |
133+
mingw-w64-${{matrix.env}}-toolchain
134+
mingw-w64-${{matrix.env}}-python
135+
mingw-w64-${{matrix.env}}-python-pip
136+
mingw-w64-${{matrix.env}}-python-virtualenv
137+
mingw-w64-${{matrix.env}}-cc
138+
git
139+
- name: Install Dependencies
140+
shell: msys2 {0}
141+
run: |
142+
export VIRTUALENV_NO_SETUPTOOLS=1
143+
144+
python -m virtualenv venv
145+
source venv/bin/activate
146+
147+
# python-ruff doesn't work without rust
148+
sed -i '/pytest-ruff/d' setup.cfg
149+
150+
pip install -e .[testing]
151+
- name: Run tests
152+
shell: msys2 {0}
153+
run: |
154+
source venv/bin/activate
155+
pytest distutils/tests
156+
118157
ci_setuptools:
119158
# Integration testing with setuptools
120159
if: ${{ false }} # disabled for deprecation warnings

0 commit comments

Comments
 (0)