From 66d6ccd0d50857fe65d3a9214118aeb44b4e330d Mon Sep 17 00:00:00 2001 From: Vadim Date: Fri, 6 Jun 2025 00:07:30 +0200 Subject: [PATCH] fix github actions --- .github/workflows/main.yml | 17 +++++++++++++---- .github/workflows/pytest.yml | 12 ++++++++++-- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index b4d73ee..a6926f7 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -3,11 +3,13 @@ name: Check Requirements on: push: paths: - - "requirements.txt" + - "requirements-linux.txt" + - "requirements-windows.txt" pull_request: paths: - - "requirements.txt" + - "requirements-linux.txt" + - "requirements-windows.txt" jobs: build: @@ -32,10 +34,17 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install dependencies + - name: Install dependencies (Windows) + if: matrix.TARGET == 'Windows' run: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install -r requirements-windows.txt + + - name: Install dependencies (others) + if: matrix.TARGET != 'Windows' + run: | + python -m pip install --upgrade pip + pip install -r requirements-linux.txt - name: Install gpu dependencies if: matrix.TARGET != 'macOS' diff --git a/.github/workflows/pytest.yml b/.github/workflows/pytest.yml index 23a583c..811ae45 100644 --- a/.github/workflows/pytest.yml +++ b/.github/workflows/pytest.yml @@ -18,10 +18,18 @@ jobs: with: python-version: ${{ matrix.python-version }} - - name: Install dependencies + - name: Install dependencies (Windows) + if: matrix.TARGET == 'Windows' run: | python -m pip install --upgrade pip - pip install -r requirements.txt + pip install -r requirements-windows.txt + #pip install -e . + + - name: Install dependencies (others) + if: matrix.TARGET != 'Windows' + run: | + python -m pip install --upgrade pip + pip install -r requirements-linux.txt #pip install -e . - name: Run pytest