mirror of
https://github.com/dwinkler1/np.git
synced 2026-05-23 13:43:31 -04:00
test updates
This commit is contained in:
parent
c37deaa3b4
commit
049a61e690
2 changed files with 15 additions and 5 deletions
16
.github/workflows/check_ed.yml
vendored
16
.github/workflows/check_ed.yml
vendored
|
|
@ -35,14 +35,18 @@ jobs:
|
||||||
run: nix build ./templates/ed
|
run: nix build ./templates/ed
|
||||||
|
|
||||||
- name: Test R script
|
- name: Test R script
|
||||||
|
env:
|
||||||
|
NO_NUSHELL: '1'
|
||||||
run: |
|
run: |
|
||||||
cd templates/ed
|
cd templates/ed
|
||||||
nix develop --command nu -c "Rscript ${{ github.workspace }}/tests/ed/test.R"
|
nix develop --command bash -c "Rscript ${{ github.workspace }}/tests/ed/test.R"
|
||||||
|
|
||||||
- name: Test Python script (disabled by default)
|
- name: Test Python script (disabled by default)
|
||||||
|
env:
|
||||||
|
NO_NUSHELL: '1'
|
||||||
run: |
|
run: |
|
||||||
cd templates/ed
|
cd templates/ed
|
||||||
nix develop --command nu -c "python3 ${{ github.workspace }}/tests/ed/test.py" || echo "SKIP: Python packages not enabled"
|
nix develop --command bash -c "python3 ${{ github.workspace }}/tests/ed/test.py" || echo "SKIP: Python packages not enabled"
|
||||||
|
|
||||||
test-with-python:
|
test-with-python:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -75,9 +79,11 @@ jobs:
|
||||||
nix build
|
nix build
|
||||||
|
|
||||||
- name: Test Python packages
|
- name: Test Python packages
|
||||||
|
env:
|
||||||
|
NO_NUSHELL: '1'
|
||||||
run: |
|
run: |
|
||||||
cd "$TEST_DIR"
|
cd "$TEST_DIR"
|
||||||
nix develop --command nu -c "python3 ${{ github.workspace }}/tests/ed/test.py"
|
nix develop --command bash -c "python3 ${{ github.workspace }}/tests/ed/test.py"
|
||||||
|
|
||||||
test-with-julia:
|
test-with-julia:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
@ -110,6 +116,8 @@ jobs:
|
||||||
nix build
|
nix build
|
||||||
|
|
||||||
- name: Test Julia packages
|
- name: Test Julia packages
|
||||||
|
env:
|
||||||
|
NO_NUSHELL: '1'
|
||||||
run: |
|
run: |
|
||||||
cd "$TEST_DIR"
|
cd "$TEST_DIR"
|
||||||
nix develop --command nu -c "julia ${{ github.workspace }}/tests/ed/test.jl"
|
nix develop --command bash -c "julia ${{ github.workspace }}/tests/ed/test.jl"
|
||||||
|
|
|
||||||
|
|
@ -131,7 +131,9 @@
|
||||||
shellHook =
|
shellHook =
|
||||||
nvimConfig.lib.shellHook evalResult.config
|
nvimConfig.lib.shellHook evalResult.config
|
||||||
+ ''
|
+ ''
|
||||||
exec nu
|
if [ -z "''${NO_NUSHELL:-}" ]; then
|
||||||
|
exec nu
|
||||||
|
fi
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue