Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
G
gargantext-ihaskell
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
gargantext
gargantext-ihaskell
Commits
b64a65d3
Commit
b64a65d3
authored
Apr 25, 2021
by
Vaibhav Sagar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Test script now requires `jq`
parent
cd9688f0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
6 deletions
+14
-6
ci.yml
.github/workflows/ci.yml
+1
-1
nix.yml
.github/workflows/nix.yml
+5
-2
acceptance.nbconvert.sh
test/acceptance.nbconvert.sh
+8
-3
No files found.
.github/workflows/ci.yml
View file @
b64a65d3
...
...
@@ -53,7 +53,7 @@ jobs:
sudo apt update
-
name
:
Install system dependencies
run
:
|
sudo apt install libmagic-dev libgmp-dev libblas-dev liblapack-dev libcairo2-dev libpango1.0-dev libzmq3-dev
sudo apt install libmagic-dev libgmp-dev libblas-dev liblapack-dev libcairo2-dev libpango1.0-dev libzmq3-dev
jq
-
name
:
Set up Python
uses
:
actions/setup-python@v1
with
:
...
...
.github/workflows/nix.yml
View file @
b64a65d3
...
...
@@ -35,7 +35,7 @@ jobs:
matrix
:
versions
:
-
compiler
:
'
ghc884'
-
compiler
:
'
ghc810
2
'
-
compiler
:
'
ghc810
4
'
steps
:
-
uses
:
actions/checkout@v2
-
uses
:
cachix/install-nix-action@v12
...
...
@@ -48,5 +48,8 @@ jobs:
-I nixpkgs=https://github.com/NixOS/nixpkgs/tarball/nixos-20.09 \
release.nix \
--argstr compiler ${{ matrix.versions.compiler }}
test/acceptance.nbconvert.sh result/bin/ihaskell-nbconvert
nix-shell \
-I nixpkgs=https://github.com/NixOS/nixpkgs/tarball/nixos-20.09 \
-p jq --run \
'test/acceptance.nbconvert.sh result/bin/ihaskell-nbconvert'
test/acceptance.nbconvert.sh
View file @
b64a65d3
...
...
@@ -3,7 +3,8 @@
# Run nbconvert acceptance tests
# ------------------------------
#
# This script must be called from the root directory of IHaskell.
# This script must be called from the root directory of IHaskell. It requires
# `jq` to be available in the $PATH.
#
# Positional arguments to this script are the invocation for `nbconvert`.
# For example:
...
...
@@ -27,7 +28,11 @@
set
-euo
pipefail
$*
--to
=
notebook
--execute
--allow-errors
--stdout
test
/acceptance.nbconvert.in.ipynb
>
test
/acceptance.nbconvert.out.ipynb
$*
--to
=
notebook
--execute
--allow-errors
--stdout
--nbformat
=
4
test
/acceptance.nbconvert.in.ipynb
>
test
/acceptance.nbconvert.out.ipynb
diff <
(
grep
-v
-e
'version'
-e
'Line '
-e
'Integral'
test
/acceptance.nbconvert.in.ipynb
)
<
(
grep
-v
-e
'version'
-e
'Line '
-e
'Integral'
test
/acceptance.nbconvert.out.ipynb
)
diff
\
<
(
grep
-v
-e
'version'
-e
'Line '
-e
'Integral'
-e
'Num'
\
<
(
cat test
/acceptance.nbconvert.in.ipynb | jq
'{"cells": .cells | map(del(.metadata.execution)), "metadata": .metadata}'
))
\
<
(
grep
-v
-e
'version'
-e
'Line '
-e
'Integral'
-e
'Num'
\
<
(
cat test
/acceptance.nbconvert.out.ipynb | jq
'{"cells": .cells | map(del(.metadata.execution)), "metadata": .metadata}'
))
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment