From c96392412402debe9c8877cb710ffe8de1e02a75 Mon Sep 17 00:00:00 2001 From: Ryan J Field Date: Fri, 8 Nov 2024 10:03:07 +0000 Subject: [PATCH 1/4] Update Actions --- .github/workflows/test-build.yaml | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-build.yaml b/.github/workflows/test-build.yaml index 19f14876..86e16f5f 100644 --- a/.github/workflows/test-build.yaml +++ b/.github/workflows/test-build.yaml @@ -1,9 +1,8 @@ -on: +on: push: - branches: - - '*' workflow_dispatch: - + schedule: + - cron: "0 9 * * 1" # Run Every Monday at 9AM jobs: R-CMD-check: # If the commit message isn't [skip ci] From cd9e5586e6897ca8f5b1e5c9658280e3ccbb9184 Mon Sep 17 00:00:00 2001 From: Ryan Field Date: Mon, 2 Dec 2024 17:16:07 +0000 Subject: [PATCH 2/4] Update Coverage --- .github/workflows/test-coverage.yaml | 27 +++++++++++++++++++++++---- 1 file changed, 23 insertions(+), 4 deletions(-) diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index ebb0a3ef..5a30691f 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -27,10 +27,29 @@ jobs: pkgdown remotes - - name: Install local registry - run: /bin/bash -c "$(curl -fsSL https://data.scrc.uk/static/localregistry.sh)" - - name: Start registry - run: $HOME/.fair/registry/scripts/start_fair_registry + - name: Checkout FAIRDataPipeline/FAIR-CLI + uses: actions/checkout@v4 + with: + repository: FAIRDataPipeline/FAIR-CLI + path: FAIR-CLI + - name: Move FAIR-CLI + run: mv FAIR-CLI ../FAIR-CLI + - name: Install Poetry + uses: snok/install-poetry@v1 + with: + virtualenvs-create: true + virtualenvs-in-project: true + + - name: Install and initialise FAIR CLI + run: | + cd ../FAIR-CLI + poetry install + source $VENV + cd '${{ github.workspace }}' + fair registry install --version main + fair init --ci + fair registry start + shell: bash - name: Query dependencies run: | From abdc8d9fcd58ca3917e4dfd9c340c4f6589e22c9 Mon Sep 17 00:00:00 2001 From: Ryan Field Date: Mon, 2 Dec 2024 17:17:01 +0000 Subject: [PATCH 3/4] Fix workflow --- .github/workflows/test-coverage.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 5a30691f..3ea238c7 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -27,7 +27,7 @@ jobs: pkgdown remotes - - name: Checkout FAIRDataPipeline/FAIR-CLI + - name: Checkout FAIRDataPipeline/FAIR-CLI uses: actions/checkout@v4 with: repository: FAIRDataPipeline/FAIR-CLI From 9f9a3a0d2dfcfdc88ad22c824b86281aae4b4832 Mon Sep 17 00:00:00 2001 From: Ryan Field Date: Mon, 2 Dec 2024 17:28:11 +0000 Subject: [PATCH 4/4] init only once --- .github/workflows/test-coverage.yaml | 1 - 1 file changed, 1 deletion(-) diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index 3ea238c7..7cd70e93 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -47,7 +47,6 @@ jobs: source $VENV cd '${{ github.workspace }}' fair registry install --version main - fair init --ci fair registry start shell: bash