File: builtin-tests

package info (click to toggle)
jupyter-cache 1.0.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 840 kB
  • sloc: python: 2,601; makefile: 40; sh: 9
file content (17 lines) | stat: -rw-r--r-- 794 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/bin/bash

# https://www.gnu.org/software/bash/manual/html_node/The-Set-Builtin.html
set -e

PYTEST_KEYWORDS="not test_basic_workflow and not test_diff_nbs and not test_execution_jupytext"
# PYTEST_KEYWORDS+=" and not test_execution and not test_execution_timeout_config and not test_execution_timeout_metadata and not test_execution_allow_errors_config and not test_run_in_temp_false"
# PYTEST_KEYWORDS+=" and not test_base and not test_add_nbs_to_project and not test_show_project_record and not test_project_execute and not test_project_merge and not test_project_invalidate"

for python_version in $(py3versions -s); do
    echo "Python version = ${python_version}"
    ls -al
    ${python_version} -m pytest tests -k "${PYTEST_KEYWORDS}"
    rm -rf .pytest_cache
done

echo "Successful"