Skip to content

Commit

Permalink
Run ExplicitImport.jl's checks on CI, closes #886.
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikekre committed May 28, 2024
1 parent b278264 commit b40dd74
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 13 deletions.
38 changes: 38 additions & 0 deletions .github/workflows/Check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
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@v1
- uses: julia-actions/julia-buildpkg@v1
- name: Install dependencies
shell: julia {0}
run: |
using Pkg
Pkg.add("ExplicitImports")
- name: ExplicitImports.jl code checks
shell: julia --project {0}
run: |
using Ferrite, ExplicitImports
allow_unanalyzable = (ApplyStrategy, ColoringAlgorithm) # baremodules
check_no_implicit_imports(Ferrite; allow_unanalyzable)
check_no_stale_explicit_imports(Ferrite; allow_unanalyzable)
check_all_qualified_accesses_via_owners(Ferrite)
13 changes: 0 additions & 13 deletions .github/workflows/lint.yml

This file was deleted.

0 comments on commit b40dd74

Please sign in to comment.