forked from slizb/min-tfs-client
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #23 from zendesk/jshen/EP-ga-migration
Add GitHub Actions workflows to migrate away from Travis-CI
- Loading branch information
Showing
5 changed files
with
58 additions
and
40 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
name: repo-checks | ||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
jobs: | ||
main: | ||
name: python3-matrix | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
task: ['Tests Python 3.6', 'Tests Python 3.7', 'Tests Python 3.8', 'Linting Python 3.7', 'Type Checking Python 3.7'] | ||
include: | ||
- task: 'Tests Python 3.6' | ||
python: 3.6 | ||
run: pytest -v tests | ||
- task: 'Tests Python 3.7' | ||
python: 3.7 | ||
run: pytest -v tests | ||
- task: 'Tests Python 3.8' | ||
python: 3.8 | ||
run: pytest -v tests | ||
- task: 'Linting Python 3.7' | ||
python: 3.7 | ||
run: flake8 tensor_serving_client/min_tfs_client tests/ | ||
- task: 'Type Checking Python 3.7' | ||
python: 3.7 | ||
run: mypy tensor_serving_client/min_tfs_client --ignore-missing-imports | ||
steps: | ||
- uses: zendesk/checkout@v2 | ||
- uses: zendesk/setup-python@v2 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
- name: install dependencies | ||
run: | | ||
./scripts/travis/tensor_serving_install.sh | ||
./scripts/travis/protoc_install.sh | ||
- name: add bin to path | ||
run: | | ||
echo "::add-path::$HOME/bin" | ||
- name: install python dependencies | ||
run: | | ||
unset PYTHONDONTWRITEBYTECODE | ||
pip install -e .[dev] | ||
pip install wheel | ||
python setup.py bdist_wheel | ||
pip install --no-index --find-links=dist/ min_tfs_client | ||
tensorflow_model_server --port=4080 --model_base_path=$PWD/tests/integration/fixtures && sleep 1 & | ||
- name: ${{ matrix.task }} | ||
run: | | ||
${{ matrix.run }} |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,11 @@ | ||
#!/bin/bash | ||
set -ex | ||
|
||
PROTOBUF_VERSION=3.3.0 | ||
PROTOC_FILENAME=protoc-${PROTOBUF_VERSION}-linux-x86_64.zip | ||
pushd /home/travis | ||
pushd ${HOME} | ||
wget https://github.com/google/protobuf/releases/download/v${PROTOBUF_VERSION}/${PROTOC_FILENAME} | ||
unzip ${PROTOC_FILENAME} | ||
unzip -o ${PROTOC_FILENAME} bin/protoc | ||
unzip -o ${PROTOC_FILENAME} 'include/*' | ||
bin/protoc --version | ||
popd | ||
popd |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters