From 8d9b8f745ca946f5be21207d9d937a661769258a Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 23 Oct 2025 16:32:08 +0200 Subject: [PATCH 1/2] CI: add testing on windows --- .github/workflows/ci.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b785aa..e6fa1f3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -52,6 +52,9 @@ jobs: - os: ubuntu-24.04 python-version: '3.13' toxenv: py313 + - os: windows-latest + python-version: '3.12' + toxenv: py312 env: TOXENV: ${{ matrix.toxenv }} @@ -64,10 +67,12 @@ jobs: # just fetching 1 commit is not enough for setuptools-scm, so we fetch all fetch-depth: 0 - name: Install Linux packages + if: runner.os == 'Linux' run: | sudo apt-get update sudo apt-get install -y rclone openssh-server curl - name: Configure OpenSSH SFTP server (test only) + if: runner.os == 'Linux' run: | sudo mkdir -p /run/sshd sudo useradd -m -s /bin/bash sftpuser || true @@ -96,6 +101,7 @@ jobs: # Export SFTP test URL for tox via GITHUB_ENV echo "BORGSTORE_TEST_SFTP_URL=sftp://sftpuser@localhost:22/borgstore/temp-store" >> $GITHUB_ENV - name: Install and configure MinIO S3 server (test only) + if: runner.os == 'Linux' run: | set -e arch=$(uname -m) @@ -129,7 +135,16 @@ jobs: python -m pip install --upgrade pip setuptools pip install -r requirements.d/dev.txt - name: Install borgstore (with all extras) + if: runner.os == 'Linux' run: pip install -ve ".[s3,sftp]" - - name: run tox envs + - name: Install borgstore (no extras) + if: runner.os == 'Windows' + run: pip install -ve . + - name: run tox envs (Linux) + if: runner.os == 'Linux' run: | tox -e all_extras + - name: run tox envs (Windows) + if: runner.os == 'Windows' + run: tox -e ${{ matrix.toxenv }} + From f4afb359830573222f87b0b8e672caf33119d2f0 Mon Sep 17 00:00:00 2001 From: Thomas Waldmann Date: Thu, 23 Oct 2025 17:05:58 +0200 Subject: [PATCH 2/2] allow failure for windows CI --- .github/workflows/ci.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index e6fa1f3..22eff55 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -55,11 +55,13 @@ jobs: - os: windows-latest python-version: '3.12' toxenv: py312 + allow-failure: true env: TOXENV: ${{ matrix.toxenv }} runs-on: ${{ matrix.os }} + continue-on-error: ${{ matrix.allow-failure || false }} steps: - uses: actions/checkout@v4