test.yml (2390B)
1 name: CI 2 3 on: 4 pull_request: 5 paths-ignore: 6 - '**.md' 7 - '**.markdown' 8 push: 9 paths-ignore: 10 - '**.md' 11 branches-ignore: 12 - 'master' 13 - 'main' 14 15 jobs: 16 build: 17 runs-on: ${{ matrix.os }} 18 strategy: 19 matrix: 20 os: [ubuntu-latest, macos-latest] 21 emacs_version: [24.5, 25.3, 26.3, 27.1] 22 python_version: [2.7] 23 24 steps: 25 - uses: actions/checkout@v1 26 27 - uses: actions/setup-python@v1 28 with: 29 python-version: ${{ matrix.python_version }} 30 31 - uses: purcell/setup-emacs@master 32 with: 33 version: ${{ matrix.emacs_version }} 34 35 - uses: actions/cache@v1 36 if: startsWith(runner.os, 'Linux') 37 with: 38 path: ~/.cache/pip 39 key: ${{ runner.os }}-pip-000 40 41 - uses: actions/cache@v1 42 if: startsWith(runner.os, 'macOS') 43 with: 44 path: ~/Library/Caches/pip 45 key: ${{ runner.os }}-pip-000 46 47 - uses: actions/cache@v1 48 with: 49 path: ~/local 50 key: ${{ runner.os }}-local-000 51 52 - uses: actions/cache@v1 53 with: 54 path: ~/.emacs.d 55 key: emacs.d 56 57 - uses: actions/cache@v1 58 with: 59 path: ~/.cask 60 key: cask-000 61 62 - name: paths 63 run: | 64 echo "$HOME/local/bin" >> $GITHUB_PATH 65 echo "$HOME/local/cask/bin" >> $GITHUB_PATH 66 echo "$HOME/.local/bin" >> $GITHUB_PATH 67 echo "LD_LIBRARY_PATH=$HOME/.local/lib" >> $GITHUB_ENV 68 69 - name: apt-get 70 if: startsWith(runner.os, 'Linux') 71 run: | 72 sudo apt-get -yq update 73 DEBIAN_FRONTEND=noninteractive sudo apt-get -yq install gnutls-bin sharutils gnupg2 dirmngr libreadline-dev libcurl4-openssl-dev virtualenv 74 75 - name: gnupg 76 if: startsWith(runner.os, 'macOS') 77 run: brew list gnupg &>/dev/null || HOMEBREW_NO_AUTO_UPDATE=1 brew install gnupg 78 79 - name: dependencies 80 run: | 81 pip install yq setuptools wheel 82 pip install Flask==1.0.2 tornado==5.1.1 83 pip uninstall -y Werkzeug 84 pip install Werkzeug==0.14.1 85 86 - name: versions 87 run: | 88 curl --version 89 emacs --version 90 gpg --version 91 python --version 92 93 - name: cask 94 run: | 95 sh tools/install-cask.sh 96 cask link list 97 98 - name: test 99 run: | 100 make test-install 101 make test 102 continue-on-error: ${{ matrix.emacs_version == 'snapshot' }}