FinanceRoutines.jl

Financial data routines for Julia
Log | Files | Refs | README | LICENSE

commit e731aa15ae15f25463ce85e0ae2e00303255cd01
parent aa47d9a0073f99cd8b7e5e6e4e016c5123faab20
Author: Erik Loualiche <eloualic@umn.edu>
Date:   Thu, 19 Jun 2025 16:56:42 -0500

adding workflows again!

Diffstat:
A.github/dependabot.yml | 7+++++++
A.github/workflows/CI.yml | 45+++++++++++++++++++++++++++++++++++++++++++++
A.github/workflows/CompatHelper.yml | 16++++++++++++++++
A.github/workflows/Documentation.yml | 62++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
A.github/workflows/TagBot.yml | 31+++++++++++++++++++++++++++++++
5 files changed, 161 insertions(+), 0 deletions(-)

diff --git a/.github/dependabot.yml b/.github/dependabot.yml @@ -0,0 +1,7 @@ +# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" # Location of package manifests + schedule: + interval: "weekly" diff --git a/.github/workflows/CI.yml b/.github/workflows/CI.yml @@ -0,0 +1,45 @@ +--- +name: CI +on: + push: + branches: + - main + tags: + - "*" + pull_request: null +concurrency: + 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 }} + env: + WRDS_USERNAME: ${{ secrets.WRDS_USERNAME }} + WRDS_PWD: ${{ secrets.WRDS_PWD }} + strategy: + fail-fast: false + matrix: + version: + - "1.11" + - nightly + os: + - ubuntu-latest + arch: + - x64 + steps: + - uses: actions/checkout@v4 + - 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@latest + - uses: julia-actions/julia-processcoverage@v1 + - uses: codecov/codecov-action@v5 + with: + token: ${{ secrets.CODECOV_TOKEN }} + fail_ci_if_error: false + file: lcov.info diff --git a/.github/workflows/CompatHelper.yml b/.github/workflows/CompatHelper.yml @@ -0,0 +1,16 @@ +name: CompatHelper +on: + schedule: + - cron: 0 0 * * * + workflow_dispatch: +jobs: + CompatHelper: + runs-on: ubuntu-latest + steps: + - name: Pkg.add("CompatHelper") + run: julia -e 'using Pkg; Pkg.add("CompatHelper")' + - name: CompatHelper.main() + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + COMPATHELPER_PRIV: ${{ secrets.DOCUMENTER_KEY }} + run: julia -e 'using CompatHelper; CompatHelper.main()' diff --git a/.github/workflows/Documentation.yml b/.github/workflows/Documentation.yml @@ -0,0 +1,62 @@ + +name: Documentation + +on: + push: + branches: + - main + tags: ['*'] + pull_request: + +jobs: + build: + permissions: + actions: write + contents: write + pull-requests: read + statuses: write + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: julia-actions/setup-julia@v2 + with: + version: '1' + - name: Install dependencies + run: julia --project=docs/ -e 'using Pkg; Pkg.develop(PackageSpec(path=pwd())); Pkg.instantiate()' + - name: Build and deploy + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For authentication with GitHub Actions token + run: julia --project=docs/ docs/make.jl + + + + + + + + + + + + + +# jobs: +# doc-preview-cleanup: +# runs-on: ubuntu-latest +# steps: +# - name: Checkout gh-pages branch +# uses: actions/checkout@v2 +# with: +# ref: gh-pages +# - name: Delete preview and history + push changes +# run: | +# if [ -d "previews/PR$PRNUM" ]; then +# git config user.name "EL" +# git config user.email "EL@EL.com" +# git rm -rf "previews/PR$PRNUM" +# git commit -m "delete preview" +# git branch gh-pages-new $(echo "delete history" | git commit-tree HEAD^{tree}) +# git push --force origin gh-pages-new:gh-pages +# fi +# env: +# PRNUM: ${{ github.event.number }} diff --git a/.github/workflows/TagBot.yml b/.github/workflows/TagBot.yml @@ -0,0 +1,31 @@ +name: TagBot +on: + issue_comment: + types: + - created + workflow_dispatch: + inputs: + lookback: + default: 3 +permissions: + actions: read + checks: read + contents: write + deployments: read + issues: read + discussions: read + packages: read + pages: read + pull-requests: read + repository-projects: read + security-events: read + statuses: read +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 }}