Skip to content

armgit / txtai

Public Imported from GitHub
0

💡 All-in-one AI framework for semantic search, LLM orchestration and language model workflows

Updated build script

davidmezzettidd5003f51aa3
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 1246047b..606f3a82 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,3 +1,4 @@
+# GitHub Actions build workflow
name: txtai
on: ["push", "pull_request"]
@@ -15,22 +16,23 @@ jobs:
with:
python-version: 3.6
- # macos pre-install
- - run: brew install libomp
- if: ${{ matrix.os == 'ubuntu-latest'}}
+ - name: Install dependencies - MacOS
+ run: brew install libomp
+ if: matrix.os == 'macos-latest'
- # Windows pre-install
- - run: python -m pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
- if: ${{ matrix.os == 'windows-latest'}}
+ - name: Install dependencies - Windows
+ run: python -m pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
+ if: matrix.os == 'windows-latest'
- # Common steps
- - run: pip install -U pip wheel coverage coveralls
- - run: pip install .
- - run: python --version || python --version
- - run: make coverage
+ - name: Build
+ run: |
+ pip install -U pip wheel coverage coveralls
+ pip install .
+ python --version || python --version
+ make coverage
- # Only create test coverage once
- - run: coveralls
- if: ${{ matrix.os == 'ubuntu-latest'}}
+ - name: Test Coverage
+ run: coveralls
+ if: matrix.os == 'ubuntu-latest'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}