Skip to content

Commit

Permalink
one more attempt to fix workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
antonkulaga committed Nov 27, 2024
1 parent 3445b44 commit 72b39ae
Showing 1 changed file with 8 additions and 18 deletions.
26 changes: 8 additions & 18 deletions .github/workflows/run_tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,23 +30,13 @@ jobs:
run: |
curl -sSL https://install.python-poetry.org | python3 -
- name: Debug directory structure
run: |
pwd
ls -la
- name: Install packages in correct order
run: |
cd core && poetry install --with dev && cd ..
if [ -d "coding" ]; then cd coding && poetry install --with dev && cd ..; fi
if [ -d "web" ]; then cd web && poetry install --with dev && cd ..; fi
if [ -d "tools" ]; then cd tools && poetry install --with dev && cd ..; fi
if [ -d "router" ]; then cd router && poetry install --with dev && cd ..; fi
if [ -d "examples" ]; then cd examples && poetry install --with dev; fi
- name: Run tests
run: poetry run python -m pytest
working-directory: .
- name: Install dependencies and run tests
env:
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
GROQ_API_KEY: ${{ secrets.GROQ_API_KEY }}
run: |
# Install root project dependencies which will include subprojects
poetry install --with dev
# Run tests
poetry run pytest

0 comments on commit 72b39ae

Please sign in to comment.