[LLM] Make sure python 310-311 tests only happen for nightly tests (#10081)

* Make sure python 310-311 tests only happen for nightly tests

* Use default runner for setup-python-version

* Small fixes
This commit is contained in:
Yuwen Hu 2024-02-04 16:14:48 +08:00 committed by GitHub
parent 7e49fbc5dd
commit 136f042f84

View file

@ -38,17 +38,17 @@ jobs:
llm-cpp-build:
uses: ./.github/workflows/llm-binary-build.yml
setup-python-version:
runs-on: [self-hosted, llm, ubuntu-20.04-lts]
runs-on: ubuntu-latest
outputs:
python-version: ${{ steps.setup-python-version.outputs.python-version }}
steps:
- name: setup-python-version
id: setup-python-version
run: |
if ${{ github.event_name == 'pull_request' }}; then
python_version='["3.9"]'
else
if [ ${{ github.event_name }} == 'schedule' ]; then
python_version='["3.9", "3.10", "3.11"]'
else
python_version='["3.9"]'
fi
list=$(echo ${python_version} | jq -c)
echo "python-version=${list}" >> "$GITHUB_OUTPUT"