windows.yml 894 B

1234567891011121314151617181920212223242526272829303132333435
  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: |
  24. pip install -e .
  25. pyinstaller -y scripts/borg.exe.spec
  26. - uses: actions/upload-artifact@v3
  27. with:
  28. name: borg-windows
  29. path: dist/borg.exe
  30. - name: Run tests
  31. run: |
  32. ./dist/borg.exe -V
  33. pytest --benchmark-skip -vv -rs -k "not remote"