From 359686b678caaf295646c54ce6035193a593cdc4 Mon Sep 17 00:00:00 2001 From: Peter Rice Date: Sat, 14 Feb 2026 17:18:09 -0500 Subject: [PATCH] move nix test to build, add flake check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit so that the test runs on garnix, qbpm's ๐Ÿ‘third๐Ÿ‘ CI system --- .builds/nix.yml | 8 +------- README.md | 3 ++- flake.nix | 11 ++++++++++- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/.builds/nix.yml b/.builds/nix.yml index 31abbf5..bd977ff 100644 --- a/.builds/nix.yml +++ b/.builds/nix.yml @@ -4,10 +4,4 @@ sources: environment: NIX_CONFIG: "experimental-features = nix-command flakes" tasks: - - build: nix build ./qbpm - - install: nix profile install ./qbpm - - run: | - mkdir -p ~/.config/qutebrowser - touch ~/.config/qutebrowser/config.py - qbpm new profile - qbpm list | grep profile + - check: nix flake check ./qbpm diff --git a/README.md b/README.md index 4d30176..e79ea62 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,8 @@ # qutebrowser profile manager +[![PyPI version](http://img.shields.io/pypi/v/qbpm.svg)](https://pypi.python.org/pypi/qbpm) [![builds.sr.ht status](https://builds.sr.ht/~pvsr/qbpm/commits/main.svg)](https://builds.sr.ht/~pvsr/qbpm/commits/main?) -[![PyPI](http://img.shields.io/pypi/v/qbpm.svg)](https://pypi.python.org/pypi/qbpm) +[![garnix build status](https://img.shields.io/endpoint.svg?url=https%3A%2F%2Fgarnix.io%2Fapi%2Fbadges%2Fpvsr%2Fqbpm)](https://garnix.io/repo/pvsr/qbpm) qbpm (qutebrowser profile manager) is a tool for creating, managing, and running [qutebrowser](https://github.com/qutebrowser/qutebrowser) profiles. Profile support diff --git a/flake.nix b/flake.nix index dbb2d13..f3da4a8 100644 --- a/flake.nix +++ b/flake.nix @@ -38,7 +38,14 @@ pkgs.installShellFiles ]; nativeCheckInputs = [ pkgs.python3.pkgs.pytestCheckHook ]; - postInstallCheck = "$out/bin/qbpm --help"; + postInstallCheck = '' + $out/bin/qbpm --help >/dev/null + export HOME=$(mktemp -d) + mkdir -p ~/.config/qutebrowser + touch ~/.config/qutebrowser/config.py + $out/bin/qbpm new profile + $out/bin/qbpm list | grep profile + ''; postInstall = '' _QBPM_COMPLETE=bash_source $out/bin/qbpm > completions/qbpm.bash _QBPM_COMPLETE=zsh_source $out/bin/qbpm > completions/qbpm.zsh @@ -65,6 +72,8 @@ default = self.apps.${pkgs.system}.qbpm; }); + checks = forAllSystems (pkgs: self.packages.${pkgs.system}); + devShells = forAllSystems (pkgs: { default = pkgs.mkShell { packages = [ -- 2.51.2