From 3b569bcb257529150c2f2478916b2dc7979b661a Mon Sep 17 00:00:00 2001 From: Daniel Wheeler Date: Sun, 13 Aug 2023 10:14:58 -0400 Subject: [PATCH] ci: make _data/python-pfhub flake check first Reverse order of flake check so that _data/python_pfhub/flake.nix is first. Checking to see if linkml will work. --- .github/workflows/flake-check.yml | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/.github/workflows/flake-check.yml b/.github/workflows/flake-check.yml index 00b6c0c56..c17a73e2c 100644 --- a/.github/workflows/flake-check.yml +++ b/.github/workflows/flake-check.yml @@ -21,14 +21,7 @@ jobs: name: pfhub authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}' extraPullNames: nix-community - - name: Check Nix flake inputs (./flake.lock) - uses: DeterminateSystems/flake-checker-action@v5 - - name: Install Nix - uses: DeterminateSystems/nix-installer-action@v4 - - name: Build Nix package - run: | - nix flake lock --update-input pfhub - nix build + - name: Check Nix flake inputs (./_data/python-pfhub/flake.lock) uses: DeterminateSystems/flake-checker-action@v5 with: @@ -37,3 +30,13 @@ jobs: run: | cd _data/python-pfhub nix build + cd $GITHUB_WORKSPACE + + - name: Check Nix flake inputs (./flake.lock) + uses: DeterminateSystems/flake-checker-action@v5 + - name: Install Nix + uses: DeterminateSystems/nix-installer-action@v4 + - name: Build Nix package + run: | + nix flake lock --update-input pfhub + nix build