Skip to content
Open
10 changes: 7 additions & 3 deletions .github/workflows/Test-CI-deprecations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: "Test Library CI (deprecations)"

# Will run the notebooks with the classiq API mocked, and fail on deprecation warnings:
# PRs: the notebooks whose code changed. Weekly: all notebooks.
# A placeholder for now: the job is off (`if: false`) until the test exists.
# The job is off (`if: false`) until the notebooks are free of deprecations.

on:
# PRs (including forks)
Expand All @@ -21,7 +21,7 @@ defaults:

jobs:
test:
if: false # TODO: remove once the test exists
if: false # TODO: remove once the notebooks are free of deprecations

permissions:
contents: read
Expand Down Expand Up @@ -187,8 +187,12 @@ jobs:
# Run Tests
#
- name: Run Notebooks (mocked API, deprecation warnings)
run: echo "TODO - the mocked deprecation test"
run: python -m pytest -c tests/config_deprecations.ini --rootdir=.
env:
SHOULD_TEST_ALL_FILES: ${{ github.event_name != 'pull_request' }}
LIST_OF_IPYNB_CHANGED: "${{ steps.code-changed.outputs.list }}"
LIST_OF_IPYNB_TESTS_CHANGED: "${{ steps.changed-files.outputs.tests_all_changed_files }}"
CLASSIQ_TELEMETRY_MODE: disabled
CLASSIQ_HOST: http://127.0.0.1:9 # the API is mocked: nothing may reach the platform
JUPYTER_PLATFORM_DIRS: "1"
PYTHONDONTWRITEBYTECODE: "1"
17 changes: 17 additions & 0 deletions tests/config_deprecations.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
[pytest]
testpaths =
tests/deprecations

addopts =
--color=yes
--log-cli-level=INFO
--durations=0
--durations-min=1

#
# Common settings
#
python_files = test_*.py

filterwarnings =
error
1 change: 1 addition & 0 deletions tests/config_quick_tests.ini
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ testpaths =
norecursedirs =
tests/notebooks
tests/readme
tests/deprecations

addopts =
--color=yes
Expand Down
Loading
Loading