Skip to content

MAINT: outsource to Lc2ppiKSemileptonicModelLHCb.jl #8

MAINT: outsource to Lc2ppiKSemileptonicModelLHCb.jl

MAINT: outsource to Lc2ppiKSemileptonicModelLHCb.jl #8

Workflow file for this run

env:
JULIA_CI: "true"
name: Julia
on:
push:
branches:
- main
- epic/*
- "[0-9]+.[0-9]+.x"
paths:
- "**.jl"
- "**/Manifest.toml"
- "**/Project.toml"
- "!**/exportnotebooks.jl"
pull_request:
branches:
- main
- epic/*
- "[0-9]+.[0-9]+.x"
paths:
- "**.jl"
- "**/Manifest.toml"
- "**/Project.toml"
- "!**/exportnotebooks.jl"
jobs:
build:
name: Run Julia scripts
runs-on: ubuntu-22.04
steps:
- uses: actions/checkout@v4
- name: Extract locked Julia version
id: extract-version
run: |
VERSION=$(grep 'julia_version = ' julia/Manifest.toml | head -n 1 | cut -d '"' -f 2)
echo "version=$VERSION" | tee -a $GITHUB_OUTPUT
- uses: julia-actions/setup-julia@v1
with:
version: ${{ steps.extract-version.outputs.version }}
- name: Fetch Julia cache
uses: actions/cache@v3
with:
key: |
julia-${{hashFiles('julia/Manifest.toml')}}-${{hashFiles('**.jl')}}
restore-keys: |
julia-${{hashFiles('julia/Manifest.toml')}}
julia
path: |
./julia-*/
~/.julia/
- run: julia --project=. -e 'using Pkg; Pkg.instantiate()'
working-directory: julia/
- name: Run scripts in julia directory
run: |
for script in notebooks/*.jl scripts/*.jl; do
echo -e "\n\n--== Running $script ==--\n"
julia --project=. "$script" && echo -e "\033[32m SUCCESS\033[0m"
done
working-directory: julia/