mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-21 06:39:09 -04:00
Compare commits
5 Commits
67622c0e51
...
feature/te
| Author | SHA1 | Date | |
|---|---|---|---|
| 24b66745d1 | |||
| 3074e3c47e | |||
| 9aea31e841 | |||
| ec5975d663 | |||
| f5b22322d0 |
19
.github/workflows/pytest_safe.yml
vendored
Normal file
19
.github/workflows/pytest_safe.yml
vendored
Normal 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
|
||||||
14
shell.nix
14
shell.nix
@@ -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
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user