BazerUtils.jl

Assorted Julia utilities including custom logging
Log | Files | Refs | README | LICENSE

commit 336a72ee61a3176e8e8b4c1a2cc6382219d3b695
parent 0ef209a46be20bac59b5633c6f05c0660d0bf5df
Author: Erik Loualiche <eloualic@umn.edu>
Date:   Tue, 20 May 2025 11:08:12 -0500

ci

Diffstat:
M.github/workflows/CI.yml | 26+++++++++++++++-----------
A.github/workflows/Documentation.yaml | 57+++++++++++++++++++++++++++++++++++++++++++++++++++++++++
M.github/workflows/Documenter.yml | 18++++++------------
3 files changed, 78 insertions(+), 23 deletions(-)

diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml @@ -5,7 +5,6 @@ on: - main tags: ['*'] pull_request: - workflow_dispatch: concurrency: # Skip intermediate builds: always. # Cancel intermediate builds: only if it is a pull request build. @@ -13,28 +12,33 @@ concurrency: cancel-in-progress: ${{ startsWith(github.ref, 'refs/pull/') }} jobs: test: - name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} runs-on: ${{ matrix.os }} - timeout-minutes: 60 - permissions: # needed to allow julia-actions/cache to proactively delete old caches that it has created - actions: write - contents: read strategy: fail-fast: false matrix: version: + - '1.10' - '1.11' - - 'pre' + - 'nightly' os: - ubuntu-latest arch: - x64 steps: - - uses: actions/checkout@v4 - - uses: julia-actions/setup-julia@v2 + - uses: actions/checkout@v3 + - uses: julia-actions/setup-julia@v1 with: version: ${{ matrix.version }} arch: ${{ matrix.arch }} - - uses: julia-actions/cache@v2 + - uses: julia-actions/cache@v1 - uses: julia-actions/julia-buildpkg@v1 - - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-runtest@latest + env: + DATADEPS_ALWAYS_ACCEPT: true + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} # required + fail_ci_if_error: false + file: lcov.info diff --git a/.github/workflows/Documentation.yaml b/.github/workflows/Documentation.yaml @@ -0,0 +1,57 @@ +name: Documentation + +on: + push: + branches: + - main + tags: '*' + pull_request: + +jobs: + build: + permissions: + actions: write + contents: write + pull-requests: read + statuses: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: '1' + - uses: julia-actions/cache@v2 + - name: Install dependencies + run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' + - name: Build and deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # If authenticating with GitHub Actions token + GKSwstype: "100" # https://discourse.julialang.org/t/generation-of-documentation-fails-qt-qpa-xcb-could-not-connect-to-display/60988 + run: julia --project=docs/ docs/make.jl + + + + + + + +# jobs: +# doc-preview-cleanup: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout gh-pages branch +# uses: actions/checkout@v2 +# with: +# ref: gh-pages +# - name: Delete preview and history + push changes +# run: | +# if [ -d "previews/PR$PRNUM" ]; then +# git config user.name "EL" +# git config user.email "EL@EL.com" +# git rm -rf "previews/PR$PRNUM" +# git commit -m "delete preview" +# git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree}) +# git push --force origin gh-pages-new:gh-pages +# fi +# env: +# PRNUM: ${{ github.event.number }} diff --git a/.github/workflows/Documenter.yml b/.github/workflows/Documenter.yml @@ -1,5 +1,5 @@ # Sample workflow for building and deploying a VitePress site to GitHub Pages -# + name: Documenter on: @@ -36,9 +36,11 @@ jobs: uses: actions/checkout@v4 - name: Setup Julia uses: julia-actions/setup-julia@v1 - - name: Load Julia packages from cache - id: julia-cache - uses: julia-actions/cache@v2 + - name: Pull Julia cache + uses: julia-actions/cache@v1 + - name: Install documentation dependencies + run: julia --project=docs -e 'using Pkg; pkg"dev ."; Pkg.instantiate(); Pkg.precompile(); Pkg.status()' + #- name: Creating new mds from src - name: Build and deploy docs uses: julia-actions/julia-docdeploy@v1 env: @@ -47,11 +49,3 @@ jobs: GKSwstype: "100" # for Plots.jl plots (if you have them) JULIA_DEBUG: "Documenter" DATADEPS_ALWAYS_ACCEPT: true - - name: Save Julia depot cache on cancel or failure - id: julia-cache-save - if: cancelled() || failure() - uses: actions/cache/save@v4 - with: - path: | - ${{ steps.julia-cache.outputs.cache-paths }} - key: ${{ steps.julia-cache.outputs.cache-key }}