Compare commits

...

5 Commits

Author SHA1 Message Date
Richie 24b66745d1 updated test_test_bash_wrapper_error 2025-12-31 21:00:22 -05:00
Richie 3074e3c47e added busybox to nix_builder.nix 2025-12-31 17:06:38 -05:00
Richie 9aea31e841 added pytest_safe.yml 2025-12-31 16:55:05 -05:00
Richie ec5975d663 added busybox 2025-12-31 16:34:21 -05:00
Richie f5b22322d0 testing unshare 2025-12-31 16:14:20 -05:00
5 changed files with 29 additions and 11 deletions
+19
View File
@@ -0,0 +1,19 @@
name: pytest_safe
on:
push:
branches:
- main
pull_request:
branches:
- main
merge_group:
jobs:
pytest:
runs-on: self-hosted
steps:
- uses: actions/checkout@v4
- name: Run tests
run: unshare --map-root-user --user --net -- pytest tests
+7 -7
View File
@@ -6,14 +6,14 @@
default = pkgs.mkShell {
NIX_CONFIG = "extra-experimental-features = nix-command flakes ca-derivations";
nativeBuildInputs = with pkgs; [
nix
home-manager
git
my_python
ssh-to-age
gnupg
age
busybox
git
gnupg
home-manager
my_python
nix
ssh-to-age
];
};
}
+1
View File
@@ -112,6 +112,7 @@ in
user = "github-runners";
group = "github-runners";
extraPackages = with pkgs; [
busybox
nixfmt-rfc-style
nixos-rebuild
treefmt
+1 -1
View File
@@ -57,5 +57,5 @@ def test_test_bash_wrapper_error() -> None:
"""test_test_bash_wrapper_error."""
expected_error = 2
stdout, returncode = bash_wrapper("ls /this/path/does/not/exist")
assert stdout == "ls: cannot access '/this/path/does/not/exist': No such file or directory\n"
assert stdout == "ls: /this/path/does/not/exist: No such file or directory\n"
assert returncode == expected_error
+1 -3
View File
@@ -4,6 +4,7 @@
# cli
bat
btop
busybox
eza
fd
ffmpegthumbnailer
@@ -21,7 +22,6 @@
ripgrep
starship
tmux
unzip
yazi
zoxide
# Home Assistant
@@ -31,13 +31,11 @@
# system info
hwloc
lynis
pciutils
smartmontools
usbutils
# networking
iperf3
nmap
wget
# python
poetry
ruff