windows.yml 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. name: Windows CI
  2. on:
  3. push:
  4. branches: [ master ]
  5. paths:
  6. - '**.py'
  7. - '**.pyx'
  8. - '**.c'
  9. - '**.h'
  10. - '**.yml'
  11. - '**.cfg'
  12. - '**.ini'
  13. - 'requirements.d/*'
  14. - '!docs/**'
  15. pull_request:
  16. branches: [ master ]
  17. paths:
  18. - '**.py'
  19. - '**.pyx'
  20. - '**.c'
  21. - '**.h'
  22. - '**.yml'
  23. - '**.cfg'
  24. - '**.ini'
  25. - 'requirements.d/*'
  26. - '!docs/**'
  27. env:
  28. SETUPTOOLS_USE_DISTUTILS: stdlib # Needed for pip to work - https://www.msys2.org/docs/python/#known-issues
  29. PY_COLORS: 1
  30. jobs:
  31. msys2-ucrt64:
  32. runs-on: windows-latest
  33. defaults:
  34. run:
  35. shell: msys2 {0}
  36. steps:
  37. - uses: actions/checkout@v3
  38. with:
  39. fetch-depth: 0
  40. - uses: msys2/setup-msys2@v2
  41. with:
  42. msystem: UCRT64
  43. update: true
  44. - name: Install dependencies
  45. run: ./scripts/msys2-install-deps development
  46. - name: Build
  47. run: |
  48. pip install -e .
  49. pyinstaller -y scripts/borg.exe.spec
  50. - uses: actions/upload-artifact@v3
  51. with:
  52. name: borg-windows
  53. path: dist/borg.exe
  54. - name: Run tests
  55. run: |
  56. ./dist/borg.exe -V
  57. pytest --benchmark-skip -vv -rs -k "not remote"