Skip to content

Commit

Permalink
update workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
klau506 committed Aug 27, 2024
1 parent 854d3db commit f185ae3
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ name: build
on:
push:
branches:
- gcam-v7.0
- gcam-core
- gcam-iamcompact
- dev
- dev_gcam7.1


jobs:
R-CMD:
runs-on: ${{ matrix.config.os }}
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/docker_impl.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: docker
on:
push:
branches:
- gcam-v7.0
- gcam-core
- gcam-iamcompact
- dev

jobs:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: docs
on:
push:
branches:
- gcam-v7.0
- gcam-core
- gcam-iamcompact
- dev

jobs:
pkgdown:
Expand Down
4 changes: 3 additions & 1 deletion .github/workflows/draft-pdf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@ name: draft-pdf
on:
push:
branches:
- gcam-v7.0
- gcam-core
- gcam-iamcompact
- dev

jobs:
paper:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/test_coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@ name: test_coverage
on:
push:
branches:
- gcam-v7.0
- gcam-core
- gcam-iamcompact
- dev

jobs:
Expand Down
4 changes: 2 additions & 2 deletions R/functions.R
Original file line number Diff line number Diff line change
Expand Up @@ -1880,8 +1880,8 @@ get_energy_price_fragmented <- function(GCAM_version = "v7.0") {
if (NA %in% unique(tmp1$market)) {
warning('ATTENTION: At least one scenario does not contain CO2 price')
}
if (!dplyr::all_of(unique(tmp1$market) %in% c(unique(CO2_market_filteredReg$market),NA))) {
missing_markets <- setdiff(unique(tmp1$market), unique(CO2_market_filteredReg$market))
missing_markets <- setdiff(unique(tmp1$market), unique(CO2_market_filteredReg$market))
if (length(missing_markets) != 0) {
warning(sprintf('ATTENTION: The CO2 markets %s are not present in the `co2_market_new` mapping file.',
paste(missing_markets, collapse = ", ")))

Expand Down

0 comments on commit f185ae3

Please sign in to comment.