Most of them are deprecation warnings (which indicate the code needs to catch up or risk being broken when new upstream releases are made).
The PytestAssertRewriteWarning: assertion is always true looks like a testing bug and needs to be fixed.
Not sure what UserWarning is about but might be a bug too.
Bonus: Turn all pytest warnings into failures and explicitly handle them (either ignore on purpose globally or on a case-by-case basis for reason beyond your control, or mark them as expected warning using pytest.warns, or fix the use case so warning does not get raised at all).
Example log: https://github.com/Jammy2211/PyAutoGalaxy/runs/7808313167?check_suite_focus=true
In the log above, there are 59 warnings.
PytestAssertRewriteWarning: assertion is always true
looks like a testing bug and needs to be fixed.UserWarning
is about but might be a bug too.Bonus: Turn all pytest warnings into failures and explicitly handle them (either ignore on purpose globally or on a case-by-case basis for reason beyond your control, or mark them as expected warning using
pytest.warns
, or fix the use case so warning does not get raised at all).Also see https://docs.pytest.org/en/stable/how-to/capture-warnings.html
https://github.com/astropy/astropy.github.com/pull/491#issuecomment-1215349065