Skip to content

Commit 39596e0

Browse files
committed
build: test fix
1 parent 766cf9b commit 39596e0

2 files changed

Lines changed: 11 additions & 4 deletions

File tree

.envrc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
if command -v pyenv >/dev/null 2>&1; then
2+
echo "alpha"
23
layout pyenv $(cat runtimes.txt)
34
elif command -v nix >/dev/null 2>&1; then
5+
echo "beta"
46
use flake
57
layout python python3.14
68
watch_file external/**
9+
else
10+
echo "gamma"
711
fi

.github/workflows/pre-commit.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,13 @@ jobs:
99
pre-commit:
1010
runs-on: ubuntu-latest
1111
steps:
12-
- uses: actions/checkout@v2
13-
- uses: DeterminateSystems/nix-installer-action@v3
14-
- uses: DeterminateSystems/magic-nix-cache-action@main
15-
- uses: HatsuneMiku3939/direnv-action@v1
12+
- uses: actions/checkout@v4
13+
- uses: DeterminateSystems/nix-installer-action@v9
14+
- uses: DeterminateSystems/magic-nix-cache-action@v7
15+
- run: nix profile install nixpkgs#direnv
16+
- run: |
17+
direnv allow .
18+
direnv export bash >> "$GITHUB_ENV"
1619
- run: |
1720
pip install -r requirements/pre-commit.txt
1821
pre-commit run -a

0 commit comments

Comments
 (0)