Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/libtmux-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: libtmux CI

on: [push]

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [ '3.x' ]
tmux-version: [ '2.6', '2.7', '2.8', 'master' ]
steps:
- uses: actions/checkout@v1
- name: Cache tmux build ${{ matrix.tmux-version }}
id: tmux-build-cache
uses: actions/cache@v1
with:
path: ~/tmux-builds/tmux-${{ matrix.tmux-version }}
key: tmux-${{ matrix.tmux-version }}

- name: Build tmux ${{ matrix.tmux-version }}
if: steps.tmux-build-cache.outputs.cache-hit != 'true'
run: |
sudo apt install libevent-dev libncurses5-dev libtinfo-dev libutempter-dev bison
mkdir ~/tmux-builds
mkdir ~/tmux-src
git clone https://github.com/tmux/tmux.git ~/tmux-src/tmux-${{ matrix.tmux-version }}
cd ~/tmux-src/tmux-${{ matrix.tmux-version }}
git checkout ${{ matrix.tmux-version }}
sh autogen.sh
./configure --prefix=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }} && make && make install
export PATH=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin:$PATH
cd ~
tmux -V
- name: Configure git
run: |
git config --global user.name 'travis-ci'
git config --global user.email '[email protected]'
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install python dependencies
run: |
python -m pip install --upgrade pip pipenv setuptools
pipenv install -d --system --skip-lock
- name: Lint with flake8
run: |
pipenv run flake8
- name: Test with pytest
continue-on-error: ${{ matrix.tmux-version == 'master' }}
run: |
export PATH=$HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin:$PATH
ls $HOME/tmux-builds/tmux-${{ matrix.tmux-version }}/bin
tmux -V
pipenv run py.test --cov=./ --cov-report=xml
- uses: codecov/codecov-action@v1
with:
token: ${{ secrets.CODECOV_TOKEN }}
50 changes: 0 additions & 50 deletions .travis.yml

This file was deleted.

5 changes: 2 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,6 @@ Docs https://libtmux.git-pull.com
API https://libtmux.git-pull.com/en/latest/api.html
Changelog https://libtmux.git-pull.com/en/latest/history.html
Issues https://github.com/tmux-python/libtmux/issues
Travis http://travis-ci.org/tmux-python/libtmux
Test Coverage https://codecov.io/gh/tmux-python/libtmux
pypi https://pypi.python.org/pypi/libtmux
Open Hub https://www.openhub.net/p/libtmux-python
Expand Down Expand Up @@ -215,9 +214,9 @@ tests .. code-block:: bash
:alt: Python Package
:target: http://badge.fury.io/py/libtmux

.. |build-status| image:: https://img.shields.io/travis/tmux-python/libtmux.svg
.. |build-status| image:: https://github.com/tmux-python/libtmux/workflows/.github/workflows/libtmux-ci.yml/badge.svg
:alt: Build Status
:target: https://travis-ci.org/tmux-python/libtmux
:target: https://github.com/tmux-python/libtmux/actions

.. |coverage| image:: https://codecov.io/gh/tmux-python/libtmux/branch/master/graph/badge.svg
:alt: Code Coverage
Expand Down