windows.yml 867 B

12345678910111213141516171819202122232425262728293031323334
  1. name: Windows CI
  2. on: [push, pull_request]
  3. env:
  4. SETUPTOOLS_USE_DISTUTILS: stdlib # Needed for pip to work - https://www.msys2.org/docs/python/#known-issues
  5. PY_COLORS: 1
  6. jobs:
  7. msys2-ucrt64:
  8. runs-on: windows-latest
  9. defaults:
  10. run:
  11. shell: msys2 {0}
  12. steps:
  13. - uses: actions/checkout@v3
  14. with:
  15. fetch-depth: 0
  16. - uses: msys2/setup-msys2@v2
  17. with:
  18. msystem: UCRT64
  19. update: true
  20. - name: Install dependencies
  21. run: ./scripts/msys2-install-deps development
  22. - name: Build
  23. run: ./scripts/msys2-build
  24. - uses: actions/upload-artifact@v3
  25. with:
  26. name: borg-windows
  27. path: dist/borg.exe
  28. - name: Run tests
  29. run: |
  30. ./dist/borg.exe -V
  31. pip install -e .
  32. pytest --benchmark-skip -vv -rs -k "not remote"