DMOJ / online-judge

A modern open-source online judge and contest platform system.
https://dmoj.ca
GNU Affero General Public License v3.0
928 stars 359 forks source link

Fix lxml for unit tests #2326

Closed int-y1 closed 6 months ago

int-y1 commented 6 months ago

Unit tests are failing because of this error:

  File "/home/runner/work/online-judge/online-judge/judge/migrations/0091_compiler_message_ansi2html.py", line 4, in <module>
    from lxml.html.clean import clean_html
  File "/opt/hostedtoolcache/Python/3.7.17/x64/lib/python3.7/site-packages/lxml/html/clean.py", line 21, in <module>
    ) from None
ImportError: lxml.html.clean module is now a separate project lxml_html_clean.
Install lxml[html_clean] or lxml_html_clean directly.
Error: Process completed with exit code 1.
codecov-commenter commented 6 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 46.76%. Comparing base (bc6aef1) to head (1e51ade).

:exclamation: Your organization needs to install the Codecov GitHub app to enable full functionality.

Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #2326 +/- ## ======================================= Coverage 46.76% 46.76% ======================================= Files 251 251 Lines 13317 13317 ======================================= Hits 6228 6228 Misses 7089 7089 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.