Skip to content

LLMstudio-core 1.0.3 LLMstudio-tracker 1.1.0 LLMstudio 1.0.3 LLMstudio-proxy 1.0.5 #26

LLMstudio-core 1.0.3 LLMstudio-tracker 1.1.0 LLMstudio 1.0.3 LLMstudio-proxy 1.0.5

LLMstudio-core 1.0.3 LLMstudio-tracker 1.1.0 LLMstudio 1.0.3 LLMstudio-proxy 1.0.5 #26

Workflow file for this run

name: Tests
on:
pull_request:
branches:
- main
- develop
types:
- opened
- synchronize
- reopened
jobs:
unit-tests:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Set up Python environment
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ">=3.9 <3.13"
# Install Poetry
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
# Cache Poetry Dependencies
- name: Cache Poetry dependencies
uses: actions/cache@v3
with:
path: ~/.cache/pypoetry
key: poetry-${{ runner.os }}-${{ hashFiles('**/poetry.lock') }}
restore-keys: |
poetry-${{ runner.os }}-
# Install lib and dev dependencies
- name: Install llmstudio-core
working-directory: ./libs/core
run: |
poetry install
UNIT_ENV=$(poetry env info --path)
echo $UNIT_ENV
echo "UNIT_ENV=$UNIT_ENV" >> $GITHUB_ENV
- name: Run unit tests
run: |
echo ${{ env.UNIT_ENV }}
source ${{ env.UNIT_ENV }}/bin/activate
poetry run pytest libs/core
integration-tests:
needs: unit-tests
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
# Set up Python environment
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: ">=3.9 <3.13"
# Install Poetry
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
# Install llmstudio-core dependencies
- name: Install llmstudio-core
working-directory: ./libs/core
run: |
poetry install
INTEGRATION_ENV=$(poetry env info --path)
echo $INTEGRATION_ENV
echo "INTEGRATION_ENV=$INTEGRATION_ENV" >> $GITHUB_ENV
# Install llmstudio
- name: Install llmstudio
working-directory: ./libs/llmstudio
run: |
poetry install
# Run Integration Tests
- name: Run Integration Tests
run: |
source ${{ env.INTEGRATION_ENV }}/bin/activate
poetry run pytest libs/llmstudio/tests/integration_tests