diff --git a/.github/workflows/build_and_test.yml b/.github/workflows/build_and_test.yml index 4991b88c..1f19d5cc 100644 --- a/.github/workflows/build_and_test.yml +++ b/.github/workflows/build_and_test.yml @@ -35,6 +35,10 @@ jobs: uses: actions/checkout@v4 with: persist-credentials: false + - name: Set up R ${{ matrix.r-version }} + uses: r-lib/actions/setup-r@v2 + with: + r-version: release - name: Setup Miniconda using Python ${{ matrix.python-version }} uses: conda-incubator/setup-miniconda@v3 with: @@ -44,10 +48,6 @@ jobs: environment-file: environment.yml python-version: ${{ matrix.python-version }} auto-activate-base: false - - name: Set up R ${{ matrix.r-version }} - uses: r-lib/actions/setup-r@v2 - with: - r-version: release - name: Build shell: bash -l {0} run: |