From cfc7dfb5d615267fbbaa421121e7a2a9130c5684 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20M=C3=BCller-Widmann?= Date: Fri, 5 Sep 2025 15:06:50 +0200 Subject: [PATCH] Update CI --- .github/workflows/CI.yml | 53 ++++++++++++++++-------------- .github/workflows/CompatHelper.yml | 5 ++- .gitignore | 1 + docs/Project.toml | 7 ++++ test/REQUIRE | 1 - 5 files changed, 38 insertions(+), 29 deletions(-) delete mode 100644 test/REQUIRE diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml index a8a094d..9706e52 100644 --- a/.github/workflows/CI.yml +++ b/.github/workflows/CI.yml @@ -8,57 +8,60 @@ on: - master tags: '*' workflow_dispatch: + +concurrency: + # Skip intermediate builds: all builds except for builds on the `master` branch + # Cancel intermediate builds: only pull request builds + group: ${{ github.workflow }}-${{ github.ref }}-${{ github.ref != 'refs/heads/master' || github.run_number }} + cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} + jobs: test: - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} strategy: fail-fast: false matrix: version: - - '1.0' - - '1.6' + - 'min' + - 'lts' - '1' - - 'nightly' + - 'pre' os: - ubuntu-latest - arch: - - x64 + - windows-latest + - macOS-latest + exclude: + # For Julia 1.6 no aarch64 binary exists + - version: 'min' + os: macOS-latest + include: + - version: 'min' + os: macOS-13 # uses x64 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: julia-actions/setup-julia@v2 with: version: ${{ matrix.version }} - arch: ${{ matrix.arch }} - - 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/cache@v2 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 - uses: julia-actions/julia-processcoverage@v1 - uses: codecov/codecov-action@v5 with: - file: lcov.info + files: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: true docs: name: Documentation runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - uses: julia-actions/setup-julia@v2 with: version: '1' - - run: | - julia --project=docs -e ' - using Pkg - Pkg.develop(PackageSpec(path=pwd())) - Pkg.instantiate()' + - uses: julia-actions/cache@v2 + - run: julia --project=docs -e 'import Pkg; Pkg.instantiate()' - run: | julia --project=docs -e ' using Documenter: doctest diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml index 14fd628..5aa0054 100644 --- a/.github/workflows/CompatHelper.yml +++ b/.github/workflows/CompatHelper.yml @@ -24,9 +24,8 @@ jobs: - name: "Run CompatHelper" run: | import CompatHelper - CompatHelper.main() + CompatHelper.main(; dirs = ["", "docs"]) shell: julia --color=yes {0} env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} -# COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} -# COMPATHELPER_PRIV: ${{ secrets.COMPATHELPER_PRIV }} + COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} diff --git a/.gitignore b/.gitignore index 8fe2f16..25e1e9d 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ Manifest.toml *.jl.cov *.jl.mem .DS_Store +.vscode/ \ No newline at end of file diff --git a/docs/Project.toml b/docs/Project.toml index aa96972..c271cfe 100644 --- a/docs/Project.toml +++ b/docs/Project.toml @@ -1,3 +1,10 @@ [deps] DistributedArrays = "aaf54ef3-cdf8-58ed-94cc-d582ad619b94" Documenter = "e30172f5-a6a5-5a46-863b-614d45cd2de4" + +[compat] +DistributedArrays = "0.6" +Documenter = "1" + +[sources.DistributedArrays] +path = ".." diff --git a/test/REQUIRE b/test/REQUIRE deleted file mode 100644 index b2a39ac..0000000 --- a/test/REQUIRE +++ /dev/null @@ -1 +0,0 @@ -SpecialFunctions