Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Check Github Action API rate limit #3209

Closed
wants to merge 14 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ jobs:

# run PEcAn checks
- name: check
run: make -j1 check_base
run: make -j1 install
env:
REBUILD_DOCS: "FALSE"
RUN_TESTS: "FALSE"
Expand Down
23 changes: 18 additions & 5 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,18 @@ MODULES := allometry assim.batch assim.sequential benchmark \
data.remote emulator meta.analysis \
photosynthesis priors rtm uncertainty


BASE_RUNIVERSE := PEcAn.logger PEcAn.utils PEcAn.DB PEcAn.settings PEcAn.visualization PEcAn.qaqc \
PEcAn.remote PEcAn.workflow

MODELS_RUNIVERSE := PEcAn.allometry PEcAn.assim.batch PEcAnAssimSequential PEcAn.benchmark PEcAn.data.atmosphere PEcAn.data.hydrology \
PEcAn.data.land PEcAn.data.remote PEcAn.emulator \
PEcAn.MA PEcAn.photosynthesis PEcAn.priors PEcAnRTM PEcAn.uncertainty

MODULES_RUNIVERSE := PEcAn.BASGRA PEcAn.BIOCRO PEcAn.CLM45 PEcAn.DALEC PEcAn.dvmdostem PEcAn.ED2 PEcAn.FATES PEcAn.GDAY PEcAn.JULES \
PEcAn.LINKAGES PEcAn.LPJGUESS PEcAn.MAAT PEcAn.MAESPA PEcAn.PRELES PEcAn.SIBCASA PEcAn.SIPNET PEcAn.STICS PEcAn.ModelName \
PEcAn.all

# Components not currently included in the build
# (Most need more development first)
# models: cable
Expand All @@ -23,9 +35,9 @@ MODELS := $(MODELS:%=models/%)
MODULES := $(MODULES:%=modules/%)
ALL_PKGS := $(BASE) $(MODULES) $(MODELS)

BASE_I := $(BASE:%=.install/%)
MODELS_I := $(MODELS:%=.install/%)
MODULES_I := $(MODULES:%=.install/%)
BASE_I := $(BASE_RUNIVERSE:%=.install/%)
MODELS_I := $(MODELS_RUNIVERSE:%=.install/%)
MODULES_I := $(MODULES_RUNIVERSE:%=.install/%)
ALL_PKGS_I := $(BASE_I) $(MODULES_I) $(MODELS_I)
SHINY_I := $(SHINY:shiny/%=.shiny_depends/%)

Expand Down Expand Up @@ -74,7 +86,8 @@ depends_R_pkg = ./scripts/time.sh "depends ${1}" ./scripts/confirm_deps.R ${1} \
$(if $(findstring modules/benchmark,$(1)),NA,TRUE)
install_R_pkg = ./scripts/time.sh "install ${1}" Rscript \
-e ${SETROPTIONS} \
-e "devtools::install('$(strip $(1))', upgrade=FALSE)"
-e "install.packages('$(strip $(1))', repos = c('https://pecanproject.r-universe.dev', 'https://cloud.r-project.org'))"

check_R_pkg = ./scripts/time.sh "check ${1}" Rscript scripts/check_with_errors.R $(strip $(1))
test_R_pkg = ./scripts/time.sh "test ${1}" Rscript \
-e "devtools::test('$(strip $(1))'," \
Expand All @@ -99,7 +112,7 @@ depends = .doc/$(1) .install/$(1) .check/$(1) .test/$(1)
.PHONY: all install check test document shiny \
check_base check_models check_modules

all: install document
all: installFromRUniverse


check_base: $(BASE_C)
Expand Down
Loading