Skip to content

Bump actions/upload-artifact from 5 to 6 #83

Bump actions/upload-artifact from 5 to 6

Bump actions/upload-artifact from 5 to 6 #83

Workflow file for this run

name: CI
on:
push:
branches:
- master
- dev
- 'release-*'
tags: ['*']
pull_request:
branches:
- master
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 }}
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.6'
- 'pre'
os:
- ubuntu-latest
arch:
- x64
steps:
- uses: actions/checkout@v6
- uses: julia-actions/setup-julia@v2
with:
version: ${{ matrix.version }}
arch: ${{ matrix.arch }}
- uses: julia-actions/cache@v2
- uses: julia-actions/julia-buildpkg@v1
- uses: julia-actions/julia-runtest@v1
- uses: julia-actions/julia-processcoverage@v1
- name: Install LocalCoverage
shell: julia {0}
run: |
using Pkg
Pkg.add(PackageSpec(name="LocalCoverage"))
Pkg.add(PackageSpec(name="CoverageTools"))
- name: Show coverage info
shell: julia {0}
run: |
import CoverageTools
import LocalCoverage
coverage = CoverageTools.LCOV.readfile("lcov.info")
report = LocalCoverage.eval_coverage_metrics(coverage, ".")
show(report)
- uses: codecov/codecov-action@v5
with:
files: lcov.info
token: ${{ secrets.CODECOV_TOKEN }}
- name: Save Julia depot cache on cancel or failure
id: julia-cache-save
if: cancelled() || failure()
uses: actions/cache/save@v5
with:
path: |
${{ steps.julia-cache.outputs.cache-paths }}
key: ${{ steps.julia-cache.outputs.cache-key }}
codestyle:
name: Codestyle
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- uses: julia-actions/setup-julia@v2
with:
version: '1'
- name: Install JuliaFormatter and format
# This will use the latest version by default but you can set the version like so:
#
# julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter", version="0.13.0"))'
run: |
julia -e 'using Pkg; Pkg.add(PackageSpec(name="JuliaFormatter"))'
julia -e 'using JuliaFormatter; format(["src", "docs", "test"], verbose=true)'
- name: Format Check
shell: julia {0}
run: |
out = Cmd(`git diff -U0`) |> read |> String
if out == ""
exit(0)
else
@error "Some files have not been formatted !!!\n\n$out"
exit(1)
end