Fix: Applied suggested code improvement. #146
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Test nix-shell | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
nix-shell: | |
strategy: | |
matrix: | |
os: [ macos-latest, ubuntu-latest ] | |
runs-on: ${{ matrix.os }} | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Fetch the whole history for all tags and branches (required for aleph.__version__) | |
fetch-depth: 0 | |
- name: Set up Nix | |
uses: cachix/install-nix-action@v27 | |
with: | |
# Use channel nixos-23.11 for Linux and nixpkgs-23.11-darwin for macOS | |
nix_path: nixpkgs=channel:${{ matrix.os == 'macos-latest' && 'nixpkgs-24.05-darwin' || 'nixos-24.05' }} | |
- name: Run tests | |
run: nix-shell --run "pytest" |