LLMstudio-core Version 1.0.3 #9
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
name: Tests | |
on: | |
pull_request: | |
branches: | |
- main | |
types: | |
- opened | |
- synchronize | |
- reopened | |
jobs: | |
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.x" | |
# Install Poetry | |
- name: Install Poetry | |
run: | | |
curl -sSL https://install.python-poetry.org | python3 - | |
# Install lib and dev dependencies | |
- name: Install llmstudio-core | |
working-directory: ./libs/core | |
run: | | |
poetry install | |
POETRY_ENV=$(poetry env info --path) | |
echo $POETRY_ENV | |
echo "POETRY_ENV=$POETRY_ENV" >> $GITHUB_ENV | |
- name: Run unit tests | |
run: | | |
echo ${{ env.POETRY_ENV }} | |
source ${{ env.POETRY_ENV }}/bin/activate | |
poetry run pytest libs/core |