From b00683df78ef70bf1c4332a34fbb1b605a783cea Mon Sep 17 00:00:00 2001 From: Hugo Herter Date: Wed, 14 Feb 2024 17:57:26 +0100 Subject: [PATCH] fixup! matrix run on macos too --- .github/workflows/nix-ci.yml | 28 ++++++++++++++++------------ 1 file changed, 16 insertions(+), 12 deletions(-) diff --git a/.github/workflows/nix-ci.yml b/.github/workflows/nix-ci.yml index 57572987b..ba9e5d527 100644 --- a/.github/workflows/nix-ci.yml +++ b/.github/workflows/nix-ci.yml @@ -5,17 +5,21 @@ jobs: nix-shell: - runs-on: ubuntu-22.04 - steps: - - uses: actions/checkout@v2 - with: - # Fetch the whole history for all tags and branches (required for aleph.__version__) - fetch-depth: 0 + strategy: + matrix: + os: [ macos-latest, ubuntu-latest ] + runs-on: ${{ matrix.os }} - - name: Set up Nix - uses: cachix/install-nix-action@v13 - with: - nix_path: nixpkgs=channel:nixos-23.11 + steps: + - uses: actions/checkout@v2 + with: + # Fetch the whole history for all tags and branches (required for aleph.__version__) + fetch-depth: 0 - - name: Run tests - run: nix-shell --run "pytest" + - name: Set up Nix + uses: cachix/install-nix-action@v13 + with: + nix_path: nixpkgs=channel:nixos-23.11 + + - name: Run tests + run: nix-shell --run "pytest"