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] diff --git a/.github/workflows/test-coverage.yaml b/.github/workflows/test-coverage.yaml index ebb0a3ef..7cd70e93 100644 --- a/.github/workflows/test-coverage.yaml +++ b/.github/workflows/test-coverage.yaml @@ -27,10 +27,28 @@ 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 registry start + shell: bash - name: Query dependencies run: |