diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..f10a5bc --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + # Set update schedule for GitHub Actions + - package-ecosystem: "github-actions" + directory: "/" + schedule: + # Check for updates to GitHub Actions every weekday + interval: "weekly" diff --git a/.github/workflows/check-release.yml b/.github/workflows/check-release.yml index d728457..0553321 100644 --- a/.github/workflows/check-release.yml +++ b/.github/workflows/check-release.yml @@ -11,10 +11,6 @@ concurrency: jobs: check_release: runs-on: ubuntu-latest - strategy: - matrix: - group: [check_release, link_check] - fail-fast: false steps: - name: Checkout uses: actions/checkout@v2 @@ -24,10 +20,6 @@ jobs: run: | pip install -e . - name: Check Release - if: ${{ matrix.group == 'check_release' }} - uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v1 + uses: jupyter-server/jupyter_releaser/.github/actions/check-release@v2 with: token: ${{ secrets.GITHUB_TOKEN }} - - name: Run Link Check - if: ${{ matrix.group == 'link_check' }} - uses: jupyter-server/jupyter_releaser/.github/actions/check-links@v1 diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index f885e6c..a70a4a7 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -67,16 +67,8 @@ jobs: timeout-minutes: 20 steps: - uses: actions/checkout@v2 - - name: Base Setup - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 - - name: Build SDist - run: | - pip install build - python -m build --sdist - - uses: actions/upload-artifact@v2 - with: - name: "sdist" - path: dist/*.tar.gz + - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 + - uses: jupyterlab/maintainer-tools/.github/actions/make-sdist@v1 test_sdist: runs-on: ubuntu-latest @@ -84,19 +76,14 @@ jobs: name: Install from SDist and Test timeout-minutes: 20 steps: - - name: Base Setup - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 - - name: Download sdist - uses: actions/download-artifact@v2 - - name: Install From SDist - run: | - set -ex - cd sdist - mkdir test - tar --strip-components=1 -zxvf *.tar.gz -C ./test - cd test - make install - - name: Run Test - run: | - cd sdist/test - make test + - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 + - uses: jupyterlab/maintainer-tools/.github/actions/test-sdist@v1 + + link_check: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v2 + - uses: jupyterlab/maintainer-tools/.github/actions/base-setup@v1 + - uses: jupyterlab/maintainer-tools/.github/actions/check-links@v1 + with: + ignore_links: "http://some/file/from/* http://path/to/some/*" diff --git a/Makefile b/Makefile index 238c278..f1709cf 100644 --- a/Makefile +++ b/Makefile @@ -17,15 +17,7 @@ clean: test: clean ipcluster start -n=3 & - python -m pytest || python -m pytest --lf - ipcluster stop - python metakernel_python/test_metakernel_python.py - make clean - -test_warn: clean - ipcluster start -n=3 & - export PYTHONWARNINGS="all" - python -m pytest || python -m pytest --lf + python -m pytest -W default || python -m pytest -W default --lf ipcluster stop python metakernel_python/test_metakernel_python.py make clean diff --git a/conftest.py b/conftest.py new file mode 100644 index 0000000..19b54d1 --- /dev/null +++ b/conftest.py @@ -0,0 +1,2 @@ +import os +os.environ['JUPYTER_PLATFORM_DIRS'] = '1' \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index a42a036..eebc876 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -46,12 +46,6 @@ exclude = [ "examples", ] -[tool.jupyter-releaser] -skip = ["check-links"] - -[tool.jupyter-releaser.options] -ignore-links = ["http://some/file/from/*", "http://path/to/some/*"] - [tool.tbump.version] current = "0.29.2" regex = ''' @@ -68,21 +62,13 @@ src = "metakernel/__init__.py" [tool.pytest.ini_options] addopts= "-raXs --durations 10 --color=yes --doctest-modules" -norecursedirs = [ - "images", - "metakernel_python", - "metakernel_echo", - "docs" -] +testpaths = ["metakernel/tests"] timeout = 300 # Restore this setting to debug failures # timeout_method = "thread" filterwarnings= [ # Fail on warnings "error", - "ignore:the imp module is deprecated:DeprecationWarning:ipykernel", - "ignore:The distutils package is deprecated:DeprecationWarning:ipykernel", - "ignore:distutils Version classes:DeprecationWarning:ipyparallel", "ignore:unclosed event loop:ResourceWarning", "ignore:There is no current event loop:DeprecationWarning" ]