Skip to content

Commit

Permalink
Merge pull request #41 from GhanaNLP/feature-add-test-workflow
Browse files Browse the repository at this point in the history
[FIX] fix error in poetry path
  • Loading branch information
Lagyamfi authored Oct 18, 2024
2 parents 808b45b + 2677e34 commit 99247d7
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ on:
branches:
- main

workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
Expand All @@ -22,16 +24,15 @@ jobs:
- name: Install Poetry
run: |
curl -sSL https://install.python-poetry.org | python3 -
echo "$HOME/.poetry/bin" >> $GITHUB_PATH
source $HOME/.poetry/env
echo "$HOME/.local/bin" >> $GITHUB_PATH
- name: Configure Poetry to not create virtualenvs
run: poetry config virtualenvs.create false

- name: Install dependencies
run: poetry install
run: poetry install --with test

- name: Run tests
env:
khaya_api_key: ${{ secrets.KHAYA_API_KEY }}
run: poetry run pytest
run: poetry run pytest --cov=khaya

0 comments on commit 99247d7

Please sign in to comment.