From ea50f2221d2463b919dec15d24d0912fafc49761 Mon Sep 17 00:00:00 2001 From: Daniel Winkler Date: Fri, 12 Sep 2025 15:50:43 +1000 Subject: [PATCH] Hopefully faster testing on ubuntu --- .github/workflows/check.yml | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 842ed3b..e4e9411 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -9,11 +9,29 @@ concurrency: group: ${{ github.workflow }}-${{ github.ref }} cancel-in-progress: true jobs: - tests: + tests-ubuntu: runs-on: ${{ matrix.os }} strategy: matrix: - os: [ubuntu-latest macos-latest] + os: [ubuntu-latest] + steps: + - uses: actions/checkout@v5 + - uses: DeterminateSystems/nix-installer-action@20 + with: + github-token: ${{ secrets.GITHUB_TOKEN }} + - uses: cachix/cachix-action@v16 + with: + name: rde + authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' + extraPullNames: rstats-on-nix, nix-community + - run: nix build . + - run: nix flake check . --all-systems + - run: nix develop -c Rscript test/test.R + test-darwin: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [macos-latest] steps: - uses: actions/checkout@v5 - uses: DeterminateSystems/nix-installer-action@20