diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index a32545b19..3711f760d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Setup Python uses: actions/setup-python@v4 @@ -52,7 +52,7 @@ jobs: steps: - name: Check out app - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4 @@ -64,7 +64,7 @@ jobs: **/pyproject.toml **/requirements*.txt - - name: Install package + - name: Install package test dependencies run: pip install -e .[dev] - name: Set jupyter token env @@ -117,7 +117,7 @@ jobs: steps: - name: Check out app - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Set up Python uses: actions/setup-python@v4 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index baf9db738..7b23580f6 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -19,7 +19,7 @@ jobs: steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Set up Python 3.10 uses: actions/setup-python@v2 diff --git a/pyproject.toml b/pyproject.toml index 564b2528c..3cd85f0ad 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,8 @@ filterwarnings = [ # TODO: This comes from a transitive dependency of optimade_client # Remove this when this issue is addressed: # https://github.com/CasperWA/ipywidgets-extended/issues/85 - 'ignore:metadata.*trait.* @@ -24,6 +25,7 @@ filterwarnings = [ # E _warn("subprocess %s is still running" % self.pid, # E ResourceWarning: subprocess 382685 is still running 'ignore:Exception ignored in:pytest.PytestUnraisableExceptionWarning:_pytest', + 'ignore::DeprecationWarning:pytest_html', 'ignore::DeprecationWarning:jupyter_client', 'ignore::DeprecationWarning:selenium', 'ignore::DeprecationWarning:pytest_selenium', diff --git a/setup.cfg b/setup.cfg index 93ddd48ba..b47d55927 100644 --- a/setup.cfg +++ b/setup.cfg @@ -28,6 +28,7 @@ install_requires = bokeh~=2.0 humanfriendly~=10.0 ipytree~=0.2 + traitlets~=5.9.0 ipywidgets~=7.7 widgetsnbextension<3.6.3 more-itertools~=8.0 @@ -45,9 +46,12 @@ dev = bumpver==2021.1114 pgtest==1.3.1 pre-commit==2.10.1 - pytest~=6.2 + # NOTE: pytest-selenium currently incompatible with pytest>=7.2 + # Maybe could be made to work by installing 'py' dependency, see: + # https://docs.pytest.org/en/7.4.x/changelog.html#pytest-7-2-0-2022-10-23 + pytest~=7.1.0 pytest-cov~=4.0 - pytest-docker~=1.0 + pytest-docker~=2.0 pytest-selenium~=4.0 selenium~=4.7.0 webdriver-manager~=3.8 diff --git a/tests_notebooks/conftest.py b/tests_notebooks/conftest.py index 73ece5d86..5d94186bc 100644 --- a/tests_notebooks/conftest.py +++ b/tests_notebooks/conftest.py @@ -61,7 +61,7 @@ def notebook_service(docker_ip, docker_services, aiidalab_exec): aiidalab_exec("chmod -R a+rw /home/jovyan/apps/aiidalab-widgets-base", user="root") # Install AWB with extra dependencies for SmilesWidget - aiidalab_exec("pip install -U .[smiles]") + aiidalab_exec("pip install --no-cache-dir .[smiles]") # `port_for` takes a container port and returns the corresponding host port port = docker_services.port_for("aiidalab", 8888)