Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Switch to GitHub Actions #93

Merged
merged 1 commit into from
Mar 16, 2021
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
56 changes: 56 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Tests
on:
push:
branches: "*"
pull_request:
branches: "*"
jobs:
test:
runs-on: ${{ matrix.os }}-latest
strategy:
fail-fast: false
matrix:
os: [ubuntu, windows]
python-version: ["3.6", "3.8", "3.9"]
exclude:
# https://github.com/spyder-ide/pywinpty/issues/134
- os: windows
python-version: "3.9"
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Install Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
architecture: "x64"
- name: Upgrade packaging dependencies
run: |
pip install --upgrade pip setuptools wheel --user
- name: Get pip cache dir
id: pip-cache
run: |
echo "::set-output name=dir::$(pip cache dir)"
- name: Cache pip
uses: actions/cache@v1
with:
path: ${{ steps.pip-cache.outputs.dir }}
key: ${{ runner.os }}-pip-${{ matrix.python-version }}-${{ hashFiles('setup.cfg') }}
restore-keys: |
${{ runner.os }}-pip-${{ matrix.python-version }}-
${{ runner.os }}-pip-
- name: Install the Python dependencies
run: |
pip install -e .[test]
- name: List installed packages
run: |
pip freeze
pip check
- name: Run the tests
if: ${{ matrix.os != 'windows' }}
run: |
pytest -vv
- name: Run basic test on Windows
if: ${{ matrix.os == 'windows' }}
run: |
pytest terminado/tests/basic_test.py::CommonTests::test_basic
20 changes: 0 additions & 20 deletions .travis.yml

This file was deleted.

7 changes: 6 additions & 1 deletion README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@ JS:
* ``terminado/_static/terminado.js``: A lightweight wrapper to set up a
term.js terminal with a websocket.

Local Installation:

$ pip install -e .[test]


Usage example:

.. code:: python
Expand Down Expand Up @@ -66,4 +71,4 @@ for more examples. This is a simplified version of the ``single.py`` demo.

Run the unit tests with:

$ nosetests
$ pytest
28 changes: 0 additions & 28 deletions appveyor.yml

This file was deleted.

1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"pywinpty (>=0.5);os_name=='nt'",
"tornado (>=4)",
],
extras_require = dict(test=['pytest']),
python_requires=">=3.6",
classifiers=[
"Environment :: Web Environment",
Expand Down