|
@@ -6,31 +6,35 @@ on:
|
|
|
pull_request:
|
|
|
|
|
|
jobs:
|
|
|
-# convert-model:
|
|
|
-# runs-on: ubuntu-latest
|
|
|
-# env:
|
|
|
-# BLOOM_TESTING_WRITE_TOKEN: ${{ secrets.BLOOM_TESTING_WRITE_TOKEN }}
|
|
|
-# timeout-minutes: 15
|
|
|
-# steps:
|
|
|
-# - uses: actions/checkout@v2
|
|
|
-# - name: Set up Python
|
|
|
-# uses: actions/setup-python@v2
|
|
|
-# with:
|
|
|
-# python-version: 3.9
|
|
|
-# - name: Cache dependencies
|
|
|
-# uses: actions/cache@v2
|
|
|
-# with:
|
|
|
-# path: ~/.cache/pip
|
|
|
-# key: Key-v1-py3.9-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}
|
|
|
-# - name: Install dependencies
|
|
|
-# run: |
|
|
|
-# python -m pip install --upgrade pip
|
|
|
-# pip install -r requirements.txt
|
|
|
-# - name: Convert small model
|
|
|
-# run: |
|
|
|
-# python -m cli.convert_model --model bigscience/bloom-350m --output_path ./converted_model \
|
|
|
-# --output_repo bloom-testing/test-bloomd-350m --use_auth_token $BLOOM_TESTING_WRITE_TOKEN
|
|
|
-#
|
|
|
+ convert-model:
|
|
|
+ runs-on: ubuntu-latest
|
|
|
+ env:
|
|
|
+ BLOOM_TESTING_WRITE_TOKEN: ${{ secrets.BLOOM_TESTING_WRITE_TOKEN }}
|
|
|
+ timeout-minutes: 15
|
|
|
+ steps:
|
|
|
+ - uses: actions/checkout@v2
|
|
|
+ - name: Set up Python
|
|
|
+ uses: actions/setup-python@v2
|
|
|
+ with:
|
|
|
+ python-version: 3.9
|
|
|
+ - name: Cache dependencies
|
|
|
+ uses: actions/cache@v2
|
|
|
+ with:
|
|
|
+ path: ~/.cache/pip
|
|
|
+ key: Key-v1-py3.9-${{ hashFiles('requirements.txt') }}-${{ hashFiles('requirements-dev.txt') }}
|
|
|
+ - name: Install dependencies
|
|
|
+ run: |
|
|
|
+ python -m pip install --upgrade pip
|
|
|
+ pip install -r requirements.txt
|
|
|
+ - name: Extract branch name
|
|
|
+ run: |
|
|
|
+ export BRANCH_NAME="##[set-output name=branch;]$(echo ${GITHUB_REF#refs/heads/})"
|
|
|
+ echo $BRANCH_NAME
|
|
|
+ - name: Convert small model
|
|
|
+ run: |
|
|
|
+ python -m cli.convert_model --model bigscience/bloom-350m --output_path ./converted_model \
|
|
|
+ --output_repo bloom-testing/test-bloomd-350m --use_auth_token $BLOOM_TESTING_WRITE_TOKEN
|
|
|
+
|
|
|
|
|
|
run-tests:
|
|
|
runs-on: ubuntu-latest
|
|
@@ -76,5 +80,5 @@ jobs:
|
|
|
BLOCK_UID=bloom-testing/test-bloomd-350m.0 REF_INDEX=0 pytest tests/test_block_exact_match.py
|
|
|
BLOCK_UID=bloom-testing/test-bloomd-350m.4 REF_INDEX=4 pytest tests/test_block_exact_match.py
|
|
|
|
|
|
- kill $INITIAL_PID $SERVER1_PID
|
|
|
+ #kill $INITIAL_PID $SERVER1_PID
|
|
|
echo "Done!"
|