Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

small test changes #541

Merged
merged 5 commits into from
Jul 8, 2021
Merged

small test changes #541

merged 5 commits into from
Jul 8, 2021

Conversation

oliver-sanders
Copy link
Contributor

@oliver-sanders oliver-sanders commented Jun 11, 2021

Some small test changes:

  • Use the hash of the setup.py file for pip caching (rather than setup.py) in all actions.

    One action is already using the setup.cfg file:

    key: ${{ runner.os }}-pip-${{ hashFiles('setup.cfg') }}

    The others aren't:

    key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.py') }}

    The pip environment may have been frozen for a little while because of this?

  • Define pytest_plugins in a top-level conftest file to support pytest 4+.

  • Pin pytest>=6 as earlier versions ignored the configuration in the pytest.toml file.

  • Run doctests in pytest (0.34% coverage increase 馃槅).

  • Test against Python 3.10-dev (except on Windows due to pywin32 incompatibility)

  • Bump the versions of checkout/cache/setup-python actions.

@codecov-commenter
Copy link

codecov-commenter commented Jun 17, 2021

Codecov Report

Merging #541 (5320209) into master (6f970c5) will increase coverage by 0.26%.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #541      +/-   ##
==========================================
+ Coverage   76.34%   76.60%   +0.26%     
==========================================
  Files         110      109       -1     
  Lines        9819     9807      -12     
  Branches     1067     1063       -4     
==========================================
+ Hits         7496     7513      +17     
+ Misses       1943     1915      -28     
+ Partials      380      379       -1     
Impacted Files Coverage 螖
jupyter_server/auth/security.py 76.00% <酶> (酶)
jupyter_server/traittypes.py 63.69% <酶> (+8.33%) 猬嗭笍
jupyter_server/services/kernels/kernelmanager.py 80.86% <0.00%> (+0.06%) 猬嗭笍
jupyter_server/gateway/managers.py 60.11% <0.00%> (+0.11%) 猬嗭笍
jupyter_server/base/zmqhandlers.py 60.00% <0.00%> (+0.68%) 猬嗭笍
...yter_server/tests/services/kernelspecs/test_api.py 100.00% <0.00%> (+3.50%) 猬嗭笍
jupyter_server/auth/__main__.py 25.00% <0.00%> (+25.00%) 猬嗭笍
jupyter_server/__main__.py 100.00% <0.00%> (+33.33%) 猬嗭笍

Continue to review full report at Codecov.

Legend - Click here to learn more
螖 = absolute <relative> (impact), 酶 = not affected, ? = missing data
Powered by Codecov. Last update 6f970c5...5320209. Read the comment docs.

@oliver-sanders
Copy link
Contributor Author

(rebased and hopefully fixed the check-manifest test)

@blink1073 blink1073 added this to the 1.9 milestone Jun 29, 2021
@oliver-sanders
Copy link
Contributor Author

(one more commit to fix the downstream tests which were broken by the top-level contest.py file)

Copy link
Member

@Zsailer Zsailer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a fantastic contributions. Thanks so much, @oliver-sanders. Merging away!

@Zsailer Zsailer merged commit e3b2dad into jupyter-server:master Jul 8, 2021
@oliver-sanders oliver-sanders deleted the test branch July 9, 2021 08:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants