Skip to content

Commit

Permalink
First attempt to run test on Windows. Try
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexander.A.Utkin committed Sep 19, 2024
1 parent ba798ef commit e51ab6d
Showing 1 changed file with 33 additions and 9 deletions.
42 changes: 33 additions & 9 deletions .github/workflows/test-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ubuntu-22.04,ubuntu-24.04,macos-14,windows-2022]
os: [ubuntu-22.04,ubuntu-24.04,macos-14]
runs-on: ${{matrix.os}}
env:
# Python 3.12 issue found on MasOS arm64 (darwin) runners, actions/setup-python@v5 incorrect venv setup
Expand Down Expand Up @@ -40,14 +40,6 @@ jobs:
sudo apt-get install -y libunwind-dev
sudo apt-get install -y reindexer-dev
sudo apt-get install -y reindexer-server
- name: Install Reindexer-Dev\Server (Windows)
shell: cmd
if: startsWith(matrix.os, 'windows')
run: |
curl -s https://repo.reindexer.io/win/64/ > list.txt
For /f "tokens=15delims=<>= " %%A in ('findstr "reindexer-3.*" list.txt') do set LastRowCol=%%A
wget -q https://repo.reindexer.io/win/64/%LastRowCol%
%LastRowCol% /S
- name: Set up Python ${{ env.BUILD_PYTHON_VERSION }}
uses: actions/setup-python@v5
env:
Expand All @@ -67,3 +59,35 @@ jobs:
run: |
cd pyreindexer
$GITHUB_WORKSPACE/.github/workflows/test.sh
test-windows:
runs-on: windows-2022
defaults:
run:
shell: pwsh
steps:
- name: Checkout PyReindexer repo
uses: actions/checkout@v4
- name: Set up Python ${{ env.BUILD_PYTHON_VERSION }}
uses: actions/setup-python@v5
with:
python-version: '3.12'
- name: Install Reindexer-Dev\Server
run: |
curl -s https://repo.reindexer.io/win/64/ > list.txt
For /f "tokens=15delims=<>= " %%A in ('findstr "reindexer-3.*" list.txt') do set LastRowCol=%%A
wget -q https://repo.reindexer.io/win/64/%LastRowCol%
%LastRowCol% /S
- name: Install Python dependencies
run: |
python -m pip install --upgrade --disable-pip-version-check pip setuptools build
- name: Prepare Test Environment
run: python -m pip install -r requirements.txt
- name: Build PyReindexer
run: |
python -m build
python -m pip install .
- name: Test
run: |
cd pyreindexer
$GITHUB_WORKSPACE/.github/workflows/test.sh

0 comments on commit e51ab6d

Please sign in to comment.