Merge pull request #133 from gaborbernat/ga
Use Github Actions instead of Travis
This commit is contained in:
commit
89796ee6cf
|
@ -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
|
22
.travis.yml
22
.travis.yml
|
@ -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
|
|
|
@ -32,6 +32,7 @@ Changelog
|
||||||
design because we want to know when `pipdeptree` fails with a
|
design because we want to know when `pipdeptree` fails with a
|
||||||
new version of `pip`.
|
new version of `pip`.
|
||||||
|
|
||||||
|
* Move continuous integration from Travis to Github Actions.
|
||||||
|
|
||||||
1.0.0 (current stable version)
|
1.0.0 (current stable version)
|
||||||
------------------------------
|
------------------------------
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
pipdeptree
|
pipdeptree
|
||||||
==========
|
==========
|
||||||
|
|
||||||
.. image:: https://travis-ci.org/naiquevin/pipdeptree.svg?branch=master
|
.. image:: https://github.com/naiquevin/pipdeptree/workflows/check/badge.svg
|
||||||
:target: https://travis-ci.org/naiquevin/pipdeptree
|
:target: https://github.com/naiquevin/pipdeptree/actions
|
||||||
|
|
||||||
|
|
||||||
``pipdeptree`` is a command line utility for displaying the installed
|
``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:
|
There are 2 test suites in this repo:
|
||||||
|
|
||||||
1. Unit tests that use mock objects. These are configured to run on
|
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
|
2. End-to-end tests that are run against actual packages installed in
|
||||||
virtualenvs
|
virtualenvs
|
||||||
|
@ -419,7 +419,7 @@ an alternate version set the environment var ``E2E_PYTHON_EXE``.
|
||||||
Release checklist
|
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
|
#. Create a commit with following changes and push it to github
|
||||||
#. Update the `__version__` in the `pipdeptree.py` file.
|
#. Update the `__version__` in the `pipdeptree.py` file.
|
||||||
|
|
||||||
|
|
|
@ -3,3 +3,4 @@ pytest-cov
|
||||||
jinja2
|
jinja2
|
||||||
ipython
|
ipython
|
||||||
flake8
|
flake8
|
||||||
|
mock;python_version<"3"
|
||||||
|
|
Loading…
Reference in New Issue