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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Aqua testing #116

Merged
merged 3 commits into from
Mar 15, 2024
Merged

Add Aqua testing #116

merged 3 commits into from
Mar 15, 2024

Conversation

JoshuaLampert
Copy link
Member

I added some automated code quality testing.

@JoshuaLampert
Copy link
Member Author

CI fails because ExplicitImports.jl needs at least Julia v1.7, but we run CI with Julia v1.6. How do you think, we should handle this, @ranocha, @sloede?

@JoshuaLampert
Copy link
Member Author

CI fails because ExplicitImports.jl needs at least Julia v1.7, but we run CI with Julia v1.6. How do you think, we should handle this, @ranocha, @sloede?

Since we run CI on the latest release and on v1.6, we could also add something like

if VERSION >= v"1.7"
    @test isnothing(check_no_implicit_imports(P4est))
    @test isnothing(check_no_stale_explicit_imports(P4est; ignore = (:PointerWrapper,)))
end

@ranocha
Copy link
Member

ranocha commented Mar 14, 2024

The problem with your last suggestion is that we would still have ExplicitImports.jl in the Project.toml, leading to the same problem. I have just ignored ExplicitImports.jl in my packages supporting Julia v1.6.

@JoshuaLampert
Copy link
Member Author

Ah yes, you're right. I just removed the ExplicitImports.jl regression test then.

@JoshuaLampert JoshuaLampert changed the title Add Aqua and ExplicitImports testing Add Aqua testing Mar 14, 2024
Copy link

codecov bot commented Mar 14, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 17.80%. Comparing base (5c6bb24) to head (fc54f63).

Additional details and impacted files
@@           Coverage Diff           @@
##             main     #116   +/-   ##
=======================================
  Coverage   17.80%   17.80%           
=======================================
  Files           3        3           
  Lines        1427     1427           
=======================================
  Hits          254      254           
  Misses       1173     1173           
Flag Coverage Δ
unittests 17.80% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@ranocha ranocha left a comment

Choose a reason for hiding this comment

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

Thanks!

Copy link
Member

@sloede sloede left a comment

Choose a reason for hiding this comment

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

Nice idea!

@JoshuaLampert JoshuaLampert merged commit 991d0ff into main Mar 15, 2024
15 of 16 checks passed
@JoshuaLampert JoshuaLampert deleted the explicitimports branch March 15, 2024 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants