emacs-ipython-notebook/.github/workflows/test.yml

115 lines
2.7 KiB
YAML
Raw Normal View History

2020-01-03 12:58:10 -05:00
name: CI
on:
2020-01-03 13:13:37 -05:00
push:
2020-01-03 12:58:10 -05:00
paths-ignore:
- '**.md'
2020-01-03 13:13:37 -05:00
branches-ignore:
- 'master'
2020-01-03 12:58:10 -05:00
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
2020-01-15 10:13:43 -05:00
os: [ubuntu-latest, macos-latest]
2020-01-03 12:58:10 -05:00
emacs_version: [25.1, 26.3]
python-version: [3.7]
include:
- emacs_version: 24.1
lint_ignore: 1
- emacs_version: 24.2
lint_ignore: 1
env:
EMACS_LINT_IGNORE: ${{ matrix.lint_ignore }}
steps:
- uses: actions/checkout@v1
- name: python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: nix
uses: purcell/setup-emacs@master
with:
version: ${{ matrix.emacs_version }}
- uses: actions/cache@v1
if: startsWith(runner.os, 'Linux')
with:
path: ~/.cache/pip
2020-01-03 13:13:37 -05:00
key: ${{ runner.os }}-pip
2020-01-03 12:58:10 -05:00
- uses: actions/cache@v1
if: startsWith(runner.os, 'macOS')
with:
path: ~/Library/Caches/pip
2020-01-03 13:13:37 -05:00
key: ${{ runner.os }}-pip
2020-01-03 12:58:10 -05:00
- uses: actions/cache@v1
with:
path: ~/local
2020-01-09 16:22:51 -05:00
key: ${{ runner.os }}-local-000
2020-01-03 12:58:10 -05:00
2020-01-03 13:13:37 -05:00
- uses: actions/cache@v1
with:
path: ~/.emacs.d
key: emacs.d
2020-01-14 05:28:29 -05:00
- uses: actions/cache@v1
with:
path: ~/.cask
key: cask-000
2020-01-03 13:13:37 -05:00
- name: paths
uses: dickmao/setup-paths@master
with:
2020-01-05 18:35:16 -05:00
paths: local/bin:local/cask/bin:local/R/bin:local/julia-1.3.1/bin
2020-01-03 13:13:37 -05:00
- name: apt-get
if: startsWith(runner.os, 'Linux')
run: |
sudo apt-get -yq update
DEBIAN_FRONTEND=noninteractive sudo apt-get -yq install gnutls-bin sharutils nodejs gfortran gnupg2 dirmngr libreadline-dev libcurl4-openssl-dev texlive-latex-base
2020-01-03 12:58:10 -05:00
- name: dependencies
2020-01-03 13:00:52 -05:00
run: |
2020-01-03 13:13:37 -05:00
mkdir -p ~/local/bin
2020-01-03 13:00:52 -05:00
python -m pip install --upgrade pip
2020-01-03 13:13:37 -05:00
pip install setuptools wheel jupyter ipykernel ipython\<=7.8.0 numpy\<=1.16.4 matplotlib\<=3.0.3
2020-01-03 13:00:52 -05:00
python -m ipykernel install --user
sh tools/install-R.sh
2020-01-03 13:13:37 -05:00
- name: julia
if: startsWith(runner.os, 'Linux')
run: sh tools/install-julia.sh
- name: versions
run: |
2020-01-03 13:00:52 -05:00
jupyter kernelspec list
curl --version
ipython --version
emacs --version
2020-01-03 12:58:10 -05:00
2020-01-03 13:13:37 -05:00
- name: gnupg
if: startsWith(runner.os, 'macOS')
run: brew list gnupg &>/dev/null || HOMEBREW_NO_AUTO_UPDATE=1 brew install gnupg
2020-01-03 12:58:10 -05:00
- name: cask
2020-01-03 13:00:52 -05:00
run: |
sh tools/install-cask.sh
cask link list
2020-01-03 12:58:10 -05:00
- name: test
2020-01-15 10:31:04 -05:00
if: startsWith(runner.os, 'Linux')
2020-01-03 12:58:10 -05:00
run: |
rm -rf ~/.matplotlib ~/.cache/fontconfig
2020-01-14 04:43:38 -05:00
make test
2020-01-15 10:31:04 -05:00
- name: test-mem-constrained
if: startsWith(runner.os, 'macOS')
run: |
make quick