mirror of
https://github.com/borgbackup/borg.git
synced 2025-01-03 13:45:31 +00:00
CI: merge Windows workflow with main
This also enables us to avoid running it when lint fails.
This commit is contained in:
parent
021c9b656c
commit
4f7d940769
2 changed files with 37 additions and 59 deletions
37
.github/workflows/ci.yml
vendored
37
.github/workflows/ci.yml
vendored
|
@ -141,3 +141,40 @@ jobs:
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.CODECOV_TOKEN }}
|
token: ${{ secrets.CODECOV_TOKEN }}
|
||||||
env_vars: OS, python
|
env_vars: OS, python
|
||||||
|
|
||||||
|
windows:
|
||||||
|
|
||||||
|
runs-on: windows-latest
|
||||||
|
timeout-minutes: 60
|
||||||
|
needs: lint
|
||||||
|
|
||||||
|
env:
|
||||||
|
SETUPTOOLS_USE_DISTUTILS: stdlib # Needed for pip to work - https://www.msys2.org/docs/python/#known-issues
|
||||||
|
PY_COLORS: 1
|
||||||
|
|
||||||
|
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
|
||||||
|
run: ./scripts/msys2-install-deps development
|
||||||
|
- name: Build
|
||||||
|
run: |
|
||||||
|
pip install -e .
|
||||||
|
pyinstaller -y scripts/borg.exe.spec
|
||||||
|
- uses: actions/upload-artifact@v3
|
||||||
|
with:
|
||||||
|
name: borg-windows
|
||||||
|
path: dist/borg.exe
|
||||||
|
- name: Run tests
|
||||||
|
run: |
|
||||||
|
./dist/borg.exe -V
|
||||||
|
pytest --benchmark-skip -vv -rs -k "not remote"
|
||||||
|
|
59
.github/workflows/windows.yml
vendored
59
.github/workflows/windows.yml
vendored
|
@ -1,59 +0,0 @@
|
||||||
name: Windows CI
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: [ master ]
|
|
||||||
paths:
|
|
||||||
- '**.py'
|
|
||||||
- '**.pyx'
|
|
||||||
- '**.c'
|
|
||||||
- '**.h'
|
|
||||||
- '**.yml'
|
|
||||||
- '**.cfg'
|
|
||||||
- '**.ini'
|
|
||||||
- 'requirements.d/*'
|
|
||||||
- '!docs/**'
|
|
||||||
pull_request:
|
|
||||||
branches: [ master ]
|
|
||||||
paths:
|
|
||||||
- '**.py'
|
|
||||||
- '**.pyx'
|
|
||||||
- '**.c'
|
|
||||||
- '**.h'
|
|
||||||
- '**.yml'
|
|
||||||
- '**.cfg'
|
|
||||||
- '**.ini'
|
|
||||||
- 'requirements.d/*'
|
|
||||||
- '!docs/**'
|
|
||||||
|
|
||||||
env:
|
|
||||||
SETUPTOOLS_USE_DISTUTILS: stdlib # Needed for pip to work - https://www.msys2.org/docs/python/#known-issues
|
|
||||||
PY_COLORS: 1
|
|
||||||
|
|
||||||
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
|
|
||||||
run: ./scripts/msys2-install-deps development
|
|
||||||
- name: Build
|
|
||||||
run: |
|
|
||||||
pip install -e .
|
|
||||||
pyinstaller -y scripts/borg.exe.spec
|
|
||||||
- uses: actions/upload-artifact@v3
|
|
||||||
with:
|
|
||||||
name: borg-windows
|
|
||||||
path: dist/borg.exe
|
|
||||||
- name: Run tests
|
|
||||||
run: |
|
|
||||||
./dist/borg.exe -V
|
|
||||||
pytest --benchmark-skip -vv -rs -k "not remote"
|
|
Loading…
Reference in a new issue