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

davidmezzetti5ec442ea1113
diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml
index 10c180dc..97314add 100644
--- a/.github/workflows/build.yml
+++ b/.github/workflows/build.yml
@@ -1,18 +1,30 @@
-name: txtai CI
+name: txtai build
-on:
- push:
- pull_request:
+on: ["push", "pull_request"]
jobs:
build-linux:
- runs-on: windows-latest
+ runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- run: python -m pip install -U pip wheel
- - run: python -m pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
- - run: pip install -U pip wheel coverage coveralls
+ - run: pip install -U pip wheel coverage
- run: pip install .
- run: python --version
- - run: make test
+ - run: make coverage
+ - uses: coverallsapp/github-action@master
+ with:
+ github-token: ${{ secrets.GITHUB_TOKEN }}
+
+# build-windows:
+# runs-on: windows-latest
+
+# steps:
+# - uses: actions/checkout@v2
+# - run: python -m pip install -U pip wheel
+# - run: python -m pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
+# - run: pip install -U pip wheel coverage
+# - run: pip install .
+# - run: python --version
+# - run: make test
diff --git a/.travis.yml b/.travis.yml
deleted file mode 100644
index 44a360e3..00000000
--- a/.travis.yml
+++ /dev/null
@@ -1,34 +0,0 @@
-# Travis CI build script - test on all supported platforms
-os: linux
-dist: xenial
-language: python
-jobs:
- include:
- - name: "Linux"
- script:
- - make coverage
- after_success:
- - coveralls
- - name: "macOS"
- os: osx
- osx_image: xcode11.6
- language: shell
- before_install:
- - brew install libomp
- script:
- - make PYTHON=python3 test
- - name: "Windows"
- os: windows
- language: shell
- env: PATH=/c/Python38:/c/Python38/Scripts:$PATH
- before_install:
- - choco install make
- - choco install python --version 3.8.6
- - python -m pip install -U pip wheel
- - python -m pip install torch==1.6.0+cpu torchvision==0.7.0+cpu -f https://download.pytorch.org/whl/torch_stable.html
-install:
- - pip3 install -U pip wheel coverage coveralls
- - pip3 install .
- - python3 --version || python --version
-script:
- - make test