mirror of https://github.com/fredrikekre/HYPRE.jl
Julia interface to hypre linear solvers (https://github.com/hypre-space/hypre)
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
1.1 KiB
39 lines
1.1 KiB
name: Code checks |
|
|
|
on: |
|
pull_request: |
|
push: |
|
branches: ["master"] |
|
|
|
jobs: |
|
|
|
pre-commit: |
|
runs-on: ubuntu-latest |
|
steps: |
|
- uses: actions/checkout@v4 |
|
- uses: pre-commit/action@2c7b3805fd2a0fd8c1884dcaebf91fc102a13ecd # v3.0.1 |
|
|
|
explicit-imports: |
|
runs-on: ubuntu-latest |
|
name: "ExplicitImports.jl" |
|
steps: |
|
- uses: actions/checkout@v4 |
|
# - uses: julia-actions/setup-julia@v2 |
|
# with: |
|
# version: '1' |
|
- uses: julia-actions/cache@v2 |
|
- uses: julia-actions/julia-buildpkg@v1 |
|
- name: Install dependencies |
|
shell: julia {0} |
|
run: | |
|
# Add ExplicitImports.jl |
|
using Pkg |
|
Pkg.add([PackageSpec(name = "ExplicitImports", version = "1.9")]) |
|
- name: ExplicitImports.jl code checks |
|
shell: julia --project {0} |
|
run: | |
|
using HYPRE, ExplicitImports |
|
check_no_implicit_imports(HYPRE) |
|
check_no_stale_explicit_imports(HYPRE) |
|
check_all_qualified_accesses_via_owners(HYPRE) |
|
check_no_self_qualified_accesses(HYPRE)
|
|
|