diff --git a/.github/workflows/deploy-targets-dam.yml b/.github/workflows/deploy-targets-dam.yml index f98b46a..c5d7709 100644 --- a/.github/workflows/deploy-targets-dam.yml +++ b/.github/workflows/deploy-targets-dam.yml @@ -38,7 +38,7 @@ jobs: - name: Run workflow run: | - targets::tar_make(script = "_targets_dam.R") + targets::tar_make(dam_level_data_raw_csv) shell: Rscript {0} - name: Commit and push files diff --git a/.github/workflows/test-targets-climate.yml b/.github/workflows/test-targets-climate.yml index 445dc0e..01366ff 100644 --- a/.github/workflows/test-targets-climate.yml +++ b/.github/workflows/test-targets-climate.yml @@ -34,5 +34,5 @@ jobs: - name: Run workflow run: | - targets::tar_make(script = "_targets_climate.R") + targets::tar_make(dplyr::starts_with("climate")) shell: Rscript {0} diff --git a/.github/workflows/test-targets-cyclones.yml b/.github/workflows/test-targets-cyclones.yml index f5bf1fa..226ef92 100644 --- a/.github/workflows/test-targets-cyclones.yml +++ b/.github/workflows/test-targets-cyclones.yml @@ -34,5 +34,5 @@ jobs: - name: Run workflow run: | - targets::tar_make(script = "_targets_cyclones.R") + targets::tar_make(dplyr::starts_with("cyclone")) shell: Rscript {0} diff --git a/.github/workflows/test-targets-dam.yml b/.github/workflows/test-targets-dam.yml index a107fed..e2e1a28 100644 --- a/.github/workflows/test-targets-dam.yml +++ b/.github/workflows/test-targets-dam.yml @@ -34,5 +34,5 @@ jobs: - name: Run workflow run: | - targets::tar_make(script = "_targets_dam.R") + targets::tar_make(dplyr::starts_with("dam")) shell: Rscript {0} diff --git a/.github/workflows/test-targets-workflow.yml b/.github/workflows/test-targets-workflow.yml deleted file mode 100644 index 0796173..0000000 --- a/.github/workflows/test-targets-workflow.yml +++ /dev/null @@ -1,48 +0,0 @@ -name: test targets workflow - -on: - # push: - # branches: [main, master] - # pull_request: - # branches: [main, master] - workflow_dispatch: - branches: - - '*' - -jobs: - test-targets-workflow: - runs-on: ubuntu-latest - container: rocker/tidyverse:4.4.1 - env: - GIT_CRYPT_KEY64: ${{ secrets.GIT_CRYPT_KEY64 }} - steps: - - uses: actions/checkout@v4 - - - name: Install system dependencies - run: | - apt-get update && apt-get install -y --no-install-recommends \ - libxt6 libglpk-dev libpoppler-cpp-dev libmagick++-dev \ - libtesseract-dev libleptonica-dev tesseract-ocr-eng - - - name: Trust git repo - run: | - git config --global --add safe.directory /__w/paglaom/paglaom - - - name: Install packages from renv.lock (with cache) - if: ${{ !env.ACT }} - uses: r-lib/actions/setup-renv@v2 - with: - cache-version: 2 - - - name: Install packages from renv.lock (local, no cache) - if: ${{ env.ACT }} - run: | - renv::restore() - shell: Rscript {0} - - - name: Run workflow - run: | - targets::tar_make( - cyclones_peak_data_csv, script = "_targets_cyclones.R" - ) - shell: Rscript {0}