Skip to content

Commit

Permalink
Setup authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
classiqdor committed Jun 13, 2024
1 parent f7386d5 commit 454559a
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 1 deletion.
3 changes: 3 additions & 0 deletions .github/workflows/run_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
echo "LIST_OF_IPYNB_CHANGED=None" >> $GITHUB_ENV
fi
- name: Set authentication
run: echo "${{ secrets.CLASSIQ_CREDENTIALS_B64 }}" | base64 --decode > "${HOME}/.classiq-credentials"

- name: "Run tests"
run: python -m pytest tests
env:
Expand Down
10 changes: 10 additions & 0 deletions tests/test_notebooks.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
from testbook import testbook
from utils_for_tests import iterate_notebooks

TIMEOUT: int = 60 * 3 # 3 minutes


def test_notebooks() -> None:
for notebook_path in iterate_notebooks():
with testbook(notebook_path, execute=True, timeout=TIMEOUT):
pass # we simply wish it to run without errors
2 changes: 1 addition & 1 deletion tests/utils_for_tests.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from collections.abc import Iterable
from pathlib import Path

ROOT_DIRECTORY = Path(__file__).parent
ROOT_DIRECTORY = Path(__file__).parents[1]


def iterate_notebooks() -> Iterable[str]:
Expand Down

0 comments on commit 454559a

Please sign in to comment.