Merge pull request 'ci' (#935) from ci into main
Some checks failed
checks / test (push) Failing after 12s
checks / test-links (push) Failing after 12s
checks / test-impure (push) Failing after 12s

Reviewed-on: #935
This commit is contained in:
Mic92 2024-03-12 16:10:54 +00:00
commit 422b3f096e
4 changed files with 8 additions and 9 deletions

View File

@ -5,17 +5,17 @@ on:
branches: branches:
- main - main
jobs: jobs:
checks: test:
runs-on: nix runs-on: nix
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- run: nix run --refresh github:Mic92/nix-fast-build -- --no-nom --eval-workers 20 - run: nix run --refresh github:Mic92/nix-fast-build -- --no-nom --eval-workers 20
check-links: test-links:
runs-on: nix runs-on: nix
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3
- run: nix run --refresh --inputs-from .# nixpkgs#lychee . - run: nix run --refresh --inputs-from .# nixpkgs#lychee .
checks-impure: test-impure:
runs-on: nix runs-on: nix
steps: steps:
- uses: actions/checkout@v3 - uses: actions/checkout@v3

View File

@ -15,7 +15,6 @@
treefmt.programs.mypy.directories = { treefmt.programs.mypy.directories = {
"pkgs/clan-cli".extraPythonPackages = self'.packages.clan-cli.pytestDependencies; "pkgs/clan-cli".extraPythonPackages = self'.packages.clan-cli.pytestDependencies;
"pkgs/clan-vm-manager".extraPythonPackages = self'.packages.clan-vm-manager.propagatedBuildInputs; "pkgs/clan-vm-manager".extraPythonPackages = self'.packages.clan-vm-manager.propagatedBuildInputs;
# "pkgs/clan-vm-manager".options = ["--verbose"];
}; };
treefmt.settings.formatter.nix = { treefmt.settings.formatter.nix = {

View File

@ -44,7 +44,11 @@ python3.pkgs.buildPythonApplication {
buildInputs = [ gtk4 libadwaita gnome.adwaita-icon-theme ]; buildInputs = [ gtk4 libadwaita gnome.adwaita-icon-theme ];
# We need to propagate the build inputs to nix fmt / treefmt # We need to propagate the build inputs to nix fmt / treefmt
propagatedBuildInputs = [ pygobject3 clan-cli pygobject-stubs ]; propagatedBuildInputs = [
(python3.pkgs.toPythonModule clan-cli)
pygobject3
pygobject-stubs
];
# also re-expose dependencies so we test them in CI # also re-expose dependencies so we test them in CI
passthru = { passthru = {

View File

@ -22,10 +22,6 @@ disallow_untyped_calls = true
disallow_untyped_defs = true disallow_untyped_defs = true
no_implicit_optional = true no_implicit_optional = true
[[tool.mypy.overrides]]
module = "clan_cli.*"
ignore_missing_imports = true
[tool.ruff] [tool.ruff]
target-version = "py311" target-version = "py311"
line-length = 88 line-length = 88