diff --git a/.github/dependabot.yml b/.github/dependabot.yml index b940a74..700707c 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,7 +1,7 @@ +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates version: 2 updates: - package-ecosystem: "github-actions" - directory: "/" + directory: "/" # Location of package manifests schedule: - interval: "daily" - open-pull-requests-limit: 1 + interval: "weekly" diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index f49313b..f389611 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -4,6 +4,11 @@ on: types: - created workflow_dispatch: + inputs: + lookback: + default: 3 +permissions: + contents: write jobs: TagBot: if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c1f55dd..caf79e2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,44 +10,36 @@ on: - cron: '0 0 * * 1' # runs 00:00 UTC on every Monday jobs: test: - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} + name: Julia ${{ matrix.version }} - ${{ matrix.os }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: version: - '1.0' + - 'lts' - '1' - 'nightly' os: - ubuntu-latest - - windows-latest - - macos-latest - arch: - - x64 + include: + - os: windows-latest + version: '1' + - os: macos-latest + version: '1' steps: - uses: actions/checkout@v5 - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} - arch: ${{ matrix.arch }} show-versioninfo: true - - uses: actions/cache@v4 - env: - cache-name: cache-artifacts - with: - path: ~/.julia/artifacts - key: ${{ runner.os }}-test-${{ env.cache-name }}-${{ hashFiles('**/Project.toml') }} - restore-keys: | - ${{ runner.os }}-test-${{ env.cache-name }}- - ${{ runner.os }}-test- - ${{ runner.os }}- - - uses: julia-actions/julia-runtest@latest + - uses: julia-actions/cache@v2 + - uses: julia-actions/julia-runtest@v1 continue-on-error: ${{ matrix.version == 'nightly' }} - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v5 with: - file: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} docs: name: Documentation @@ -56,7 +48,7 @@ jobs: - uses: actions/checkout@v5 - uses: julia-actions/setup-julia@v2 with: - version: '1.6' + version: 'lts' - run: | julia --project=docs -e ' using Pkg diff --git a/test/tests.jl b/test/tests.jl index 913fa9f..c399e79 100644 --- a/test/tests.jl +++ b/test/tests.jl @@ -40,7 +40,7 @@ end # Its signature is kwarg_decl(m::Method, kwtype::DataType). The second argument # should be the type of the kwsorter from the corresponding MethodTable. @test isa(methods(M.j_1), Base.MethodList) - get_mt(func) = VERSION ≥ v"1.13.0-DEV.647" ? Core.GlobalMethods : methods(func).mt + get_mt(func) = VERSION ≥ v"1.12" ? Core.methodtable : methods(func).mt local mt = get_mt(M.j_1) @test isa(mt, Core.MethodTable) if Base.fieldindex(Core.MethodTable, :kwsorter, false) > 0 @@ -83,7 +83,7 @@ end DSE.format(IMPORTS, buf, doc) str = String(take!(buf)) @test occursin("\n - `Base`\n", str) - if VERSION < v"1.13-DEV" + if VERSION < v"1.12" @test occursin("\n - `Core`\n", str) end