Skip to content

Commit

Permalink
Merge pull request #44 from GhanaNLP/feature-add-test-workflow
Browse files Browse the repository at this point in the history
Feature add test workflow
  • Loading branch information
joelbudu authored Oct 19, 2024
2 parents 99247d7 + 2a0abb6 commit b624ddd
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 0 additions & 3 deletions .github/workflows/build_docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@ on:
push:
branches:
- master
pull_request:
branches:
- master

workflow_dispatch:

Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: Test Package
on:
push:
branches:
- main
- master
pull_request:
branches:
- main
- master

workflow_dispatch:

Expand Down Expand Up @@ -35,4 +35,5 @@ jobs:
- name: Run tests
env:
khaya_api_key: ${{ secrets.KHAYA_API_KEY }}
run: poetry run pytest --cov=khaya
run: |
poetry run pytest --cov=khaya
2 changes: 1 addition & 1 deletion tests/khaya/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

from khaya.khaya_interface import KhayaInterface

os.environ.pop("khaya_api_key", None) # Remove the key if it exists
# os.environ.pop("khaya_api_key", None) # Remove the key if it exists

load_dotenv()
khaya_api_key = os.getenv("khaya_api_key", "test")
Expand Down

0 comments on commit b624ddd

Please sign in to comment.