2022-10-27 12:35:12 +00:00
|
|
|
name: Windows CI
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
2023-01-11 18:40:57 +00:00
|
|
|
env:
|
|
|
|
SETUPTOOLS_USE_DISTUTILS: stdlib # Needed for pip to work - https://www.msys2.org/docs/python/#known-issues
|
|
|
|
PY_COLORS: 1
|
|
|
|
|
2022-10-27 12:35:12 +00:00
|
|
|
jobs:
|
|
|
|
msys2-ucrt64:
|
|
|
|
runs-on: windows-latest
|
|
|
|
defaults:
|
|
|
|
run:
|
|
|
|
shell: msys2 {0}
|
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v3
|
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
|
|
|
- uses: msys2/setup-msys2@v2
|
|
|
|
with:
|
|
|
|
msystem: UCRT64
|
|
|
|
update: true
|
|
|
|
- name: Install dependencies
|
2023-01-11 18:40:57 +00:00
|
|
|
run: ./scripts/msys2-install-deps development
|
2022-10-27 12:35:12 +00:00
|
|
|
- name: Build
|
|
|
|
run: ./scripts/msys2-build
|
|
|
|
- uses: actions/upload-artifact@v3
|
|
|
|
with:
|
|
|
|
name: borg-windows
|
|
|
|
path: dist/borg.exe
|
2023-01-11 18:40:57 +00:00
|
|
|
- name: Run tests
|
|
|
|
run: |
|
|
|
|
./dist/borg.exe -V
|
|
|
|
pip install -e .
|
2023-01-13 19:15:39 +00:00
|
|
|
pytest --benchmark-skip -vv -rs -k "not remote"
|