Update unittests.yml
test msys2 for Windows CI
@@ -47,27 +47,26 @@ jobs:
run: |
pytest tests/unit
-# windows:
-# runs-on: windows-latest
-# strategy:
-# matrix:
-# python-version: [ '3.7', '3.8', '3.9', '3.10' ]
-# name: Python ${{ matrix.python-version }} Windows
-# steps:
-# - uses: actions/checkout@v2
-# - name: Setup python
-# uses: actions/setup-python@v1
-# with:
-# python-version: ${{ matrix.python-version }}
-# - name: Install pytest
-# run: |
-# pip install pytest
-# - name: Install Mesa3D
-# shell: cmd
-# run: |
-# curl.exe -L --output mesa.7z --url https://github.com/pal1000/mesa-dist-win/releases/download/22.1.0/mesa3d-22.1.0-release-msvc.7z
-# "C:\Program Files\7-Zip\7z.exe" x mesa.7z
-# .\systemwidedeploy.cmd <--------------- !!!!! NEED TO AUTOMATE THIS !!!!!
-# - name: Run tests
-# run: |
-# pytest tests/unit
+ windows:
+ runs-on: windows-latest
+ strategy:
+ matrix:
+ python-version: [ '3.7', '3.8', '3.9', '3.10' ]
+ name: Python ${{ matrix.python-version }} Windows
+ steps:
+ - uses: actions/checkout@v2
+ - name: Setup python
+ uses: actions/setup-python@v1
+ with:
+ python-version: ${{ matrix.python-version }}
+ - uses: msys2/setup-msys2@v2
+ with:
+ msystem: MINGW64
+ release: false
+ install: mingw-w64-x86_64-mesa
+ - name: Install pytest
+ run: |
+ pip install pytest
+ - name: Run tests
+ run: |
+ pytest tests/unit
