Compare commits

...

5 Commits

Author SHA1 Message Date
24b66745d1 updated test_test_bash_wrapper_error 2025-12-31 21:00:22 -05:00
3074e3c47e added busybox to nix_builder.nix 2025-12-31 17:06:38 -05:00
9aea31e841 added pytest_safe.yml 2025-12-31 16:55:05 -05:00
ec5975d663 added busybox 2025-12-31 16:34:21 -05:00
f5b22322d0 testing unshare 2025-12-31 16:14:20 -05:00
5 changed files with 29 additions and 11 deletions

19
.github/workflows/pytest_safe.yml vendored Normal file
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

View File

@@ -6,14 +6,14 @@
default = pkgs.mkShell { default = pkgs.mkShell {
NIX_CONFIG = "extra-experimental-features = nix-command flakes ca-derivations"; NIX_CONFIG = "extra-experimental-features = nix-command flakes ca-derivations";
nativeBuildInputs = with pkgs; [ nativeBuildInputs = with pkgs; [
nix
home-manager
git
my_python
ssh-to-age
gnupg
age age
busybox
git
gnupg
home-manager
my_python
nix
ssh-to-age
]; ];
}; };
} }

View File

@@ -112,6 +112,7 @@ in
user = "github-runners"; user = "github-runners";
group = "github-runners"; group = "github-runners";
extraPackages = with pkgs; [ extraPackages = with pkgs; [
busybox
nixfmt-rfc-style nixfmt-rfc-style
nixos-rebuild nixos-rebuild
treefmt treefmt

View File

@@ -57,5 +57,5 @@ def test_test_bash_wrapper_error() -> None:
"""test_test_bash_wrapper_error.""" """test_test_bash_wrapper_error."""
expected_error = 2 expected_error = 2
stdout, returncode = bash_wrapper("ls /this/path/does/not/exist") 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 assert returncode == expected_error

View File

@@ -4,6 +4,7 @@
# cli # cli
bat bat
btop btop
busybox
eza eza
fd fd
ffmpegthumbnailer ffmpegthumbnailer
@@ -21,7 +22,6 @@
ripgrep ripgrep
starship starship
tmux tmux
unzip
yazi yazi
zoxide zoxide
# Home Assistant # Home Assistant
@@ -31,13 +31,11 @@
# system info # system info
hwloc hwloc
lynis lynis
pciutils
smartmontools smartmontools
usbutils usbutils
# networking # networking
iperf3 iperf3
nmap nmap
wget
# python # python
poetry poetry
ruff ruff