mirror of
https://github.com/RichieCahill/dotfiles.git
synced 2026-04-21 14:49:10 -04:00
Compare commits
5 Commits
feature/se
...
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 {
|
||||
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
|
||||
];
|
||||
};
|
||||
}
|
||||
|
||||
@@ -112,6 +112,7 @@ in
|
||||
user = "github-runners";
|
||||
group = "github-runners";
|
||||
extraPackages = with pkgs; [
|
||||
busybox
|
||||
nixfmt-rfc-style
|
||||
nixos-rebuild
|
||||
treefmt
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user