Central repository to store workflows used by some of the project repositories.
All workflows currently use latest julia subversion of v1 and run on x64 architecture in ubuntu-latest image.
Installs compat helper which checks for updates in dependencies based on compat entries in Project.toml
and sends a PR to dev branch if a dependency has updated version available.
- Typically used with cron schedule, called from master branch.
- Options:
use_FuseRegistry
: If set totrue
,FuseRegistry
will be added and used for installing packages. Default istrue
.
Uses JuliaFormatter to check if the julia files conform with .JuliaFormatter.toml
configuration in a repo.
- Typically used with PR and push to
master
anddev
. - Good to set path specifier to reduce triggering to only
.jl
changes.
Uses Documenter to test if documentation making is working fine and deploys documentation based on docs/make.jl
settings.
- Typically used with PR and push to
master
anddev
. - Good to set path specifier to reduce triggering to only
src/**
anddocs/**
changes. - Options:
use_FuseRegistry
: If set totrue
,FuseRegistry
will be added and used for installing packages. Default istrue
.
Uses https://github.com/julia-actions/julia-runtest to run test/runtests.jl
- Typically used with PR and push to
master
anddev
. - Good to set path specifier to reduce triggering to only
src/**
,test/**
, andProject.toml
changes. - Options:
upload_artifact
: If set totrue
, following arguments are required to upload test artifacts for later reference:artifact_name
: String for the displayed name of artifact.artifact_path
: Path from root where artifacts appear after test.
use_coverage
: If set totrue
, coverage report is uploaded on codecov. Follow instructions at https://app.codecov.io/gh/ProjectTorreyPines/<repo_name>/new to addCODECOV_TOKEN
GitHub Actions secret.use_dvc
: If set totrue
,dvc
will be installed to pull sample files. Default istrue
. Additional GitHub Action secrets are assumed to be present in the repo as described below.use_FuseRegistry
: If set totrue
,FuseRegistry
will be added and used for installing packages. Default istrue
. (Caution: do the following steps only if you know what you are doing. Askguptaa@fusion.gat.com
for help if you need):- For pulling the test sample files, this workflow will use
dvc
from SOLPSTestSamples repo. - This feature is on by default. If your testing does not require sample files from SOLPSTestSamples, then turn this off by adding
use_dvc: false
inwith
field. See sample file for example. - Your repo must have following 4 secret variables with the exact same name as described below:
DVC_KNOWN_HOSTS
: know_hosts entry lines for cybele, omega, and iris.DVC_SSH_CONFIG
: ssh config entries for cybele, iris, and omega with username, port, and proxy command.DVC_SSH_KEY
: Private rsa ssh key whose public part has been added tocybele:/home/username/.ssh/authorized_keys
, and similarly to omega and iris.SOLPSTESTSAMPLES_SSH_KEY
: Private rsa ssh key whose public part has been stored in Deploy Keys of SOLPSTestSamples repo.
- For pulling the test sample files, this workflow will use
Uses https://github.com/peter-evans/commit-comment to add @JuliaRegistrator register()
comment to the commit that causes a change in version number in root directory's Project.toml
file.
You can copy workflow files from samples directory to your project repo's .github/workflows/
directory to get started with default settings. Nothing else should be required to do.
It is fun to decorate your README page to show that all CIs are running fine in the master branch. Add following raw code to the top of your repo's README.md
:
![Format Check](https://github.com/ProjectTorreyPines/repo_name/actions/workflows/format_check.yml/badge.svg)
![Docs](https://github.com/ProjectTorreyPines/repo_name/actions/workflows/make_docs.yml/badge.svg)
![Tests](https://github.com/ProjectTorreyPines/repo_name/actions/workflows/test.yml/badge.svg)