Skip to content

Commit

Permalink
Maintenance cleanup (#257)
Browse files Browse the repository at this point in the history
* maintenance cleanup

* cleanup

* fix arg
  • Loading branch information
blink1073 committed Nov 11, 2022
1 parent 88856f6 commit 37a1ac0
Show file tree
Hide file tree
Showing 6 changed files with 26 additions and 59 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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"
10 changes: 1 addition & 9 deletions .github/workflows/check-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
39 changes: 13 additions & 26 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,36 +67,23 @@ 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
needs: [make_sdist]
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/*"
10 changes: 1 addition & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 2 additions & 0 deletions conftest.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
import os
os.environ['JUPYTER_PLATFORM_DIRS'] = '1'
16 changes: 1 addition & 15 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = '''
Expand All @@ -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"
]

0 comments on commit 37a1ac0

Please sign in to comment.