-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
MAINT: outsource to Lc2ppiKSemileptonicModelLHCb.jl (#326)
* DX: install `juliaup` in Conda environment * DX: run all Julia scripts in GitHub Actions * ENH: improve Julia cache for GitHub Actions * FIX: use correct `Manifest.toml` path * MAINT: update `actions/checkout` * MAINT: update Julia dependencies --------- Co-authored-by: Mikhail Mikhasenko <[email protected]>
- Loading branch information
1 parent
f5d173c
commit 274de39
Showing
23 changed files
with
1,617 additions
and
1,136 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
name: Julia | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
JULIA_CI: "true" | ||
JULIA_COLOR: "yes" | ||
|
||
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 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\033[34m--== Running $script ==--\033[0m\n" | ||
julia --color=yes --project=. "$script" && echo -e "\033[32m SUCCESS\033[0m" | ||
done | ||
working-directory: julia/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.