Skip to content

Commit

Permalink
Merge pull request #466 from HopkinsIDD/hotfix/411/fix-inference-ci-t…
Browse files Browse the repository at this point in the history
…riggers

Fix `inference CI` Triggers
  • Loading branch information
TimothyWillard authored Jan 15, 2025
2 parents 9be82be + 6d81ea5 commit 8333fa4
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 5 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/flepicommon-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,10 @@ jobs:
with:
key: flepicommon-rlibs-${{ runner.os }}-${{ matrix.R-version }}-${{ hashFiles('flepimop/R_packages/flepicommon/DESCRIPTION', 'flepimop/R_packages/flepicommon/NAMESPACE') }}-${{ env.R_LIBPATH_CKSUM }}-${{ env.CACHE_DATE }}
path: ${{ env.R_LIBPATH }}
restore-keys: |
flepicommon-rlibs-${{ runner.os }}-${{ matrix.R-version }}-${{ hashFiles('flepimop/R_packages/flepicommon/DESCRIPTION', 'flepimop/R_packages/flepicommon/NAMESPACE') }}-${{ env.R_LIBPATH_CKSUM }}-
flepicommon-rlibs-${{ runner.os }}-${{ matrix.R-version }}-${{ hashFiles('flepimop/R_packages/flepicommon/DESCRIPTION', 'flepimop/R_packages/flepicommon/NAMESPACE') }}-
flepicommon-rlibs-${{ runner.os }}-${{ matrix.R-version }}-
- name: Install R Dependencies
if: steps.r-library-cache.outputs.cache-hit != 'true'
run: |
Expand Down
19 changes: 14 additions & 5 deletions .github/workflows/inference-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,12 @@ name: inference CI

on:
workflow_dispatch:
workflow_run:
workflows: ['flepicommon-ci', 'gempyor-ci']
types:
- completed
push:
paths:
- flepimop/R_packages/inference/**/*
- flepimop/R_packages/flepicommon/**/*
- examples/**/*
- flepimop/gempyor_pkg/**/*
branches:
- dev
pull_request:
Expand All @@ -20,14 +19,17 @@ on:
- synchronize
paths:
- flepimop/R_packages/inference/**/*
- flepimop/R_packages/flepicommon/**/*
- examples/**/*
- flepimop/gempyor_pkg/**/*
branches:
- dev
- main

jobs:
tests:
runs-on: ubuntu-latest
if: (github.event_name != 'workflow_run' || github.event.workflow_run.conclusion == 'success') && (github.event_name != 'pull_request' || github.event.pull_request.draft == false)
if: github.event_name != 'pull_request' || github.event.pull_request.draft == false
strategy:
matrix:
R-version: ["4.3.3"]
Expand Down Expand Up @@ -70,6 +72,13 @@ jobs:
with:
key: inference-rlibs-${{ runner.os }}-${{ matrix.R-version }}-${{ hashFiles('flepimop/R_packages/flepicommon/DESCRIPTION', 'flepimop/R_packages/flepicommon/NAMESPACE', 'flepimop/R_packages/inference/DESCRIPTION', 'flepimop/R_packages/inference/NAMESPACE') }}-${{ env.R_LIBPATH_CKSUM }}-${{ env.CACHE_DATE }}
path: ${{ env.R_LIBPATH }}
restore-keys: |
inference-rlibs-${{ runner.os }}-${{ matrix.R-version }}-${{ hashFiles('flepimop/R_packages/flepicommon/DESCRIPTION', 'flepimop/R_packages/flepicommon/NAMESPACE', 'flepimop/R_packages/inference/DESCRIPTION', 'flepimop/R_packages/inference/NAMESPACE') }}-${{ env.R_LIBPATH_CKSUM }}-
inference-rlibs-${{ runner.os }}-${{ matrix.R-version }}-${{ hashFiles('flepimop/R_packages/flepicommon/DESCRIPTION', 'flepimop/R_packages/flepicommon/NAMESPACE', 'flepimop/R_packages/inference/DESCRIPTION', 'flepimop/R_packages/inference/NAMESPACE') }}-
inference-rlibs-${{ runner.os }}-${{ matrix.R-version }}-
flepicommon-rlibs-${{ runner.os }}-${{ matrix.R-version }}-${{ hashFiles('flepimop/R_packages/flepicommon/DESCRIPTION', 'flepimop/R_packages/flepicommon/NAMESPACE') }}-${{ env.R_LIBPATH_CKSUM }}-
flepicommon-rlibs-${{ runner.os }}-${{ matrix.R-version }}-${{ hashFiles('flepimop/R_packages/flepicommon/DESCRIPTION', 'flepimop/R_packages/flepicommon/NAMESPACE') }}-
flepicommon-rlibs-${{ runner.os }}-${{ matrix.R-version }}-
- name: Install R Dependencies For flepicommon
if: steps.r-library-cache.outputs.cache-hit != 'true'
run: |
Expand Down

0 comments on commit 8333fa4

Please sign in to comment.