From 0176fc7209fa0045633bd9389d4c1d4f9bb5860d Mon Sep 17 00:00:00 2001 From: ScottPJones Date: Tue, 18 May 2021 17:51:07 -0400 Subject: [PATCH 1/3] Update TagBot --- .github/workflows/TagBot.yml | 8 +++++-- .github/workflows/ci.yml | 43 ++++++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml index d77d3a0..f49313b 100644 --- a/.github/workflows/TagBot.yml +++ b/.github/workflows/TagBot.yml @@ -1,11 +1,15 @@ name: TagBot on: - schedule: - - cron: 0 * * * * + issue_comment: + types: + - created + workflow_dispatch: jobs: TagBot: + if: github.event_name == 'workflow_dispatch' || github.actor == 'JuliaTagBot' runs-on: ubuntu-latest steps: - uses: JuliaRegistries/TagBot@v1 with: token: ${{ secrets.GITHUB_TOKEN }} + ssh: ${{ secrets.DOCUMENTER_KEY }} diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..36c5c31 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,43 @@ +name: CI +on: + - push + - pull_request +jobs: + test: + name: Julia ${{ matrix.version }} - ${{ matrix.os }} - ${{ matrix.arch }} - ${{ github.event_name }} + runs-on: ${{ matrix.os }} + strategy: + fail-fast: false + matrix: + version: + - '1.5' + - '1.6' + - 'nightly' + os: + - ubuntu-latest + - macOS-latest + - windows-latest + arch: + - x64 + - x86 + exclude: + - os: macOS-latest + arch: x86 + steps: + - uses: actions/checkout@v2 + - uses: julia-actions/setup-julia@v1 + with: + version: ${{ matrix.version }} + arch: ${{ matrix.arch }} + - uses: actions/cache@v1 + 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-buildpkg@v1 + - uses: julia-actions/julia-runtest@v1 From 11f20bb2289a4b8961f06291edaa4bac3a2e52df Mon Sep 17 00:00:00 2001 From: Scott Paul Jones Date: Sat, 17 Oct 2026 22:10:40 -0400 Subject: [PATCH 2/3] Update CI: remove .drone.yml, standardize ci.yml Remove .drone.yml (no longer used for GitHub CI) and rewrite .github/workflows/ci.yml on the template shared with Unicode_Entities.jl. --- .drone.yml | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 .drone.yml diff --git a/.drone.yml b/.drone.yml deleted file mode 100644 index 2607e25..0000000 --- a/.drone.yml +++ /dev/null @@ -1,13 +0,0 @@ ---- -kind: pipeline -name: linux - arm64 - Julia 1.5 - -platform: - os: linux - arch: arm64 - -steps: -- name: build - image: julia:1.5 - commands: - - "julia --project=. --check-bounds=yes --color=yes -e 'using InteractiveUtils; versioninfo(verbose=true); using Pkg; Pkg.build(); Pkg.test(coverage=true)'" From 565848e129d3c6d62e67ccbf9247fac7244b445e Mon Sep 17 00:00:00 2001 From: Scott Paul Jones Date: Tue, 20 Oct 2026 11:28:32 -0400 Subject: [PATCH 3/3] Update CI: use HTML_Entities.jl ci.yml as the template Re-standardize .github/workflows/ci.yml on HTML_Entities.jl: add concurrency, permissions, processcoverage and codecov/codecov-action@v7; switch the version matrix to 1.10/1/pre. --- .github/workflows/ci.yml | 55 +++++++++++++++++++++------------------- 1 file changed, 29 insertions(+), 26 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 36c5c31..6d80502 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,43 +1,46 @@ name: CI on: - - push - - pull_request + push: + branches: + - master + tags: ['*'] + pull_request: + workflow_dispatch: +concurrency: + # Skip intermediate builds: always. + # Cancel intermediate builds: only if it is a pull request build. + group: ${{ github.workflow }}-${{ github.ref }} + 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 }} 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.5' - - '1.6' - - 'nightly' + - '1.10' # LTS, minimum supported version + - '1' # latest stable release + - 'pre' # latest prerelease, if any os: - ubuntu-latest - - macOS-latest + - macos-latest - windows-latest - arch: - - x64 - - x86 - exclude: - - os: macOS-latest - arch: x86 steps: - - uses: actions/checkout@v2 - - uses: julia-actions/setup-julia@v1 + - uses: actions/checkout@v7 + - uses: julia-actions/setup-julia@v3 with: version: ${{ matrix.version }} - arch: ${{ matrix.arch }} - - uses: actions/cache@v1 - 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@v3 - uses: julia-actions/julia-buildpkg@v1 - uses: julia-actions/julia-runtest@v1 + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v7 + with: + files: lcov.info + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false