Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi committed Dec 19, 2023
1 parent a12f565 commit f21a875
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ragstack-ai-latest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ jobs:
id: ragstack-ai-version
run: |
set +x
(tox run -c ragstack-e2e-tests -e get-package-version -q -- ragstack) | head -n 1 > /tmp/ragstack-ai-version
(tox run -c ragstack-e2e-tests -e get-latest-ragstack-ai-version -q) | head -n 1 > /tmp/ragstack-ai-version
cat /tmp/ragstack-ai-version
echo "ragstack-ai-version=$(cat /tmp/ragstack-ai-version)" >> $GITHUB_OUTPUT
Expand Down
20 changes: 11 additions & 9 deletions ragstack-e2e-tests/tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -24,25 +24,26 @@ commands =
poetry run pytest --disable-warnings {posargs:e2e_tests}

[testenv:langchain]
allowlist_externals = mv
allowlist_externals = cp
commands =
mv pyproject.langchain.toml pyproject.toml
cp pyproject.langchain.toml pyproject.toml
poetry lock
poetry install --no-root
poetry run pytest --disable-warnings {posargs:e2e_tests}

[testenv:llamaindex]
allowlist_externals = mv
allowlist_externals = cp
commands =
mv pyproject.llamaindex.toml pyproject.toml
cp pyproject.llamaindex.toml pyproject.toml
poetry lock
poetry install --no-root
poetry run pytest --disable-warnings {posargs:e2e_tests}

[testenv:ragstack-ai-latest]
allowlist_externals = mv
envdir = {toxworkdir}/.ragstack-ai-latest
allowlist_externals = cp
commands =
mv pyproject.ragstack-ai.toml pyproject.toml
cp pyproject.ragstack-ai.toml pyproject.toml
poetry lock
poetry install --no-root
poetry run pytest --disable-warnings {posargs:e2e_tests}
Expand All @@ -65,9 +66,10 @@ commands =
black .
ruff --fix .

[testenv:get-package-version]
description = get package version
[testenv:get-latest-ragstack-ai-version]
description = get latest ragstack ai version
deps =
poetry
commands =
poetry run python -c 'from importlib.metadata import version; print(version("{posargs:ragstack-ai}"))'
poetry run pip install ragstack-ai -U
poetry run python -c 'from importlib.metadata import version; print(version("ragstack-ai"))'

0 comments on commit f21a875

Please sign in to comment.