Skip to content

Commit 69f62ab

Browse files
update make file with CI practices (#360)
* init changes * adding directory path
1 parent 2bc00c9 commit 69f62ab

2 files changed

Lines changed: 13 additions & 3 deletions

File tree

Makefile

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,10 +94,19 @@ test-batch: ## Run GitHub Actions workflow and then job.py for testing on Azure
9494
--job_id="$(JOB)"
9595

9696
test: ## Run unit tests for the CFAEpiNow2Pipeline R package
97-
Rscript -e "testthat::test_local()"
97+
$(CNTR_MGR) run --mount type=bind,source=$(PWD),target=/cfa-epinow2-pipeline -it \
98+
--env-file .env \
99+
--rm $(REGISTRY)$(IMAGE_NAME):$(TAG) \
100+
Rscript -e "testthat::test_local('cfa-epinow2-pipeline')"
98101

99102
document: ## Generate roxygen2 documentation for the CFAEpiNow2Pipeline R package
100-
Rscript -e "roxygen2::roxygenize()"
103+
$(CNTR_MGR) run --mount type=bind,source=$(PWD),target=/cfa-epinow2-pipeline -it \
104+
--env-file .env \
105+
--rm $(REGISTRY)$(IMAGE_NAME):$(TAG) \
106+
Rscript -e "roxygen2::roxygenize('cfa-epinow2-pipeline')"
101107

102108
check: ## Perform R CMD check for the CFAEpiNow2Pipeline R package
103-
Rscript -e "rcmdcheck::rcmdcheck()"
109+
$(CNTR_MGR) run --mount type=bind,source=$(PWD),target=/cfa-epinow2-pipeline -it \
110+
--env-file .env \
111+
--rm $(REGISTRY)$(IMAGE_NAME):$(TAG) \
112+
Rscript -e "rcmdcheck::rcmdcheck('cfa-epinow2-pipeline')"

NEWS.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# CFAEpiNow2Pipeline v0.2.0
22

33
## Features
4+
* Updating make commands to be called from docker image locally
45
* Updating pre-commit to block specific test.parquet file
56
* Scheduling `make run-prod` on Github Actions Wednesdays at 8 AM ET
67
* Adds facility active proportion information for config runs and re-runs

0 commit comments

Comments
 (0)