feat(home): add uv and python support #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
name: Check | |
on: [pull_request] | |
jobs: | |
checks: | |
if: github.event.pull_request.draft == false | |
runs-on: macos-latest | |
permissions: | |
pull-requests: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Install Nix | |
uses: DeterminateSystems/nix-installer-action@v16 | |
- name: Enable Cache | |
uses: DeterminateSystems/magic-nix-cache-action@main | |
- name: Run Checks # uses hooks from pre-commit | |
id: run_checks | |
run: | | |
set -o pipefail | |
nix flake check 2>&1 | | |
tee /tmp/nix-flake-check.log | |
- name: Print full failure logs | |
if: ${{ failure() && steps.run_checks.conclusion == 'failure' }} | |
run: |- | |
DRV=$(grep "For full logs, run" /tmp/nix-flake-check.log | grep -oE "/nix/store/.*.drv") | |
nix log "$DRV" | | |
tee /tmp/nix-flake-check-full.log | |
- name: Comment full failure logs | |
if: ${{ failure() && steps.run_checks.conclusion == 'failure' }} | |
uses: mshick/add-pr-comment@v2 | |
with: | |
message-path: /tmp/nix-flake-check-full.log |