Skip to content

unittests.yml: Fix Nix/direnv CI failure and bump checkout to Node 24. #49

unittests.yml: Fix Nix/direnv CI failure and bump checkout to Node 24.

unittests.yml: Fix Nix/direnv CI failure and bump checkout to Node 24. #49

Workflow file for this run

name: tests
on:
push:
branches:
- '**'
jobs:
tests:
name: Basic unit tests
runs-on: ubuntu-latest
steps:
- name: Check out the repo
uses: actions/checkout@v5
# Install Nix directly and run each step inside `nix-shell` instead of
# relying on direnv, which avoids the HatsuneMiku3939/direnv-action digest
# requirement entirely. The dev shell's own deps come from shell.nix ->
# nix/pkgs.nix (pinned via fetchTarball), but `nix-shell` itself still needs
# <nixpkgs> on NIX_PATH to build its `--run` bash wrapper, so set nix_path.
- name: Install Nix
uses: cachix/install-nix-action@v31
with:
nix_path: nixpkgs=channel:nixos-25.11
- name: Install basic dependencies via poetry
run: nix-shell --run "poetry install"
- name: Run the tests
run: nix-shell --run "poetry run python -m unittest"