Skip to content

Commit

Permalink
Merge pull request #20 from wd15/ci-notebook-testing
Browse files Browse the repository at this point in the history
notebook testing with github actions
  • Loading branch information
knc6 authored Aug 30, 2022
2 parents 36d4a6b + 65eb5e1 commit c19b0cb
Show file tree
Hide file tree
Showing 4 changed files with 1,089 additions and 1,043 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/test-notebooks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
---
name: Test Jarvis Notebooks
on: [push, pull_request]
jobs:
nix:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./
steps:
- uses: actions/[email protected]
- uses: cachix/install-nix-action@v15
with:
nix_path: nixpkgs=channel:nixos-unstable
- run: nix-shell --pure --command "py.test --nbval jarvis-tools-notebooks/AIMS2022_Python_Basics.ipynb"
- run: nix-shell --pure --command "nbqa black --check jarvis-tools-notebooks/AIMS2022_Python_Basics.ipynb"
- run: nix-shell --pure --command "nbqa pylint jarvis-tools-notebooks/AIMS2022_Python_Basics.ipynb"
2 changes: 2 additions & 0 deletions .pylintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[MESSAGES CONTROL]
disable = invalid-name, missing-module-docstring, pointless-statement
Loading

0 comments on commit c19b0cb

Please sign in to comment.