-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
treewide: fix outstanding lint issues
- Loading branch information
Showing
4 changed files
with
20 additions
and
21 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,19 +15,19 @@ jobs: | |
extra_nix_config: | | ||
experimental-features = nix-command flakes | ||
- run: | | ||
nix run github:nix-community/nix-eval-jobs/3f305f4538e056e6f6f775e1f75410b6d4d8d9aa -- --workers $(nproc) --option allow-import-from-derivation false --show-trace ./release.nix | tee eval.json | ||
nix run github:nix-community/nix-eval-jobs/3f305f4538e056e6f6f775e1f75410b6d4d8d9aa -- --workers "$(nproc)" --option allow-import-from-derivation false --show-trace ./release.nix | tee eval.json | ||
jq -c 'select(.error)' eval.json | tee errors.json | ||
if [[ "$(wc -l < errors.json)" > 0 ]]; then exit 1; fi | ||
if [[ "$(wc -l < errors.json)" -gt 0 ]]; then exit 1; fi | ||
robotnix-eval-tests: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/[email protected] | ||
- uses: cachix/install-nix-action@v12 | ||
- run: | | ||
OUTPUT=$(nix-instantiate --eval --strict tests/eval.nix) | ||
OUTPUT="$(nix-instantiate --eval --strict tests/eval.nix)" | ||
if [[ "$OUTPUT" != "[ ]" ]]; then | ||
echo "Instantiation tests failed:" | ||
echo $OUTPUT | ||
echo "$OUTPUT" | ||
fi | ||
nixos-tests: | ||
runs-on: ubuntu-latest | ||
|
@@ -55,10 +55,10 @@ jobs: | |
experimental-features = nix-command flakes | ||
- run: | | ||
nix flake check | ||
export ORIG_DIR=$PWD | ||
cd $(mktemp -d) | ||
nix flake init -t $ORIG_DIR | ||
nix flake check --override-input robotnix $ORIG_DIR | ||
export ORIG_DIR="$PWD" | ||
cd "$(mktemp -d)" | ||
nix flake init -t "$ORIG_DIR" | ||
nix flake check --override-input robotnix "$ORIG_DIR" | ||
checks: | ||
runs-on: ubuntu-latest | ||
steps: | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,7 +4,6 @@ | |
|
||
from typing import Any | ||
import json | ||
import urllib.request | ||
import os | ||
import pathlib | ||
|
||
|
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