diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml new file mode 100644 index 0000000..b349947 --- /dev/null +++ b/.github/workflows/check.yml @@ -0,0 +1,40 @@ +name: check +on: + push: + pull_request: + schedule: + - cron: "0 8 * * *" + +jobs: + test: + name: Test on ${{ matrix.py }} under ${{ matrix.os }} + runs-on: ${{ matrix.os }}-latest + strategy: + fail-fast: false + matrix: + os: + - Ubuntu + py: + - 3.9-dev + - 3.8 + - 3.7 + - 3.6 + - 3.5 + - 3.4 + - 2.7 + - pypy3 + - pypy2 + steps: + - name: Setup python for test ${{ matrix.py }} + uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.py }} + - uses: actions/checkout@v2 + - name: Setup graphviz + uses: ts-graphviz/setup-graphviz@v1 + - name: Install dev requirements + run: pip install -r dev-requirements.txt + - name: Install project + run: pip install .[graphviz] + - name: Run test suite + run: pytest -v tests diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0457d15..0000000 --- a/.travis.yml +++ /dev/null @@ -1,22 +0,0 @@ ---- -# travis-ci config for pipdeptree - -language: python -python: - - "2.7" - - "3.4" - - "3.5" - - "3.6" - - "3.7" - - "3.8" -addons: - apt: - packages: - - graphviz -before_install: - - pip install -U pip>=8.0.2 - - pip install pytest - - pip install graphviz -install: pip install . -script: pytest -v tests/test_pipdeptree.py -sudo: false diff --git a/CHANGES.md b/CHANGES.md index d1490b7..f111e1c 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -32,6 +32,7 @@ Changelog design because we want to know when `pipdeptree` fails with a new version of `pip`. +* Move continuous integration from Travis to Github Actions. 1.0.0 (current stable version) ------------------------------ diff --git a/README.rst b/README.rst index 68ec309..ab1a602 100644 --- a/README.rst +++ b/README.rst @@ -1,8 +1,8 @@ pipdeptree ========== -.. image:: https://travis-ci.org/naiquevin/pipdeptree.svg?branch=master - :target: https://travis-ci.org/naiquevin/pipdeptree +.. image:: https://github.com/naiquevin/pipdeptree/workflows/check/badge.svg + :target: https://github.com/naiquevin/pipdeptree/actions ``pipdeptree`` is a command line utility for displaying the installed @@ -359,7 +359,7 @@ Runing Tests (for contributors) There are 2 test suites in this repo: 1. Unit tests that use mock objects. These are configured to run on - every push to the repo and on every PR thanks to travis.ci + every push to the repo and on every PR thanks to Github Actions. 2. End-to-end tests that are run against actual packages installed in virtualenvs @@ -419,7 +419,7 @@ an alternate version set the environment var ``E2E_PYTHON_EXE``. Release checklist ----------------- -#. Make sure that tests pass on travis.ci. +#. Make sure that tests pass on Github Actions. #. Create a commit with following changes and push it to github #. Update the `__version__` in the `pipdeptree.py` file. diff --git a/dev-requirements.txt b/dev-requirements.txt index 13a1074..95ee2a7 100644 --- a/dev-requirements.txt +++ b/dev-requirements.txt @@ -3,3 +3,4 @@ pytest-cov jinja2 ipython flake8 +mock;python_version<"3"