Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fe461bc

Browse files
committed
Switch to GHA.
1 parent 01503a0 commit fe461bc

5 files changed

Lines changed: 41 additions & 73 deletions

File tree

.github/workflows/build.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: build
2+
3+
on: [push, pull_request]
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
strategy:
9+
matrix:
10+
python-version: [3.6, 3.9]
11+
steps:
12+
- uses: actions/checkout@v2
13+
- uses: actions/setup-python@v2
14+
with:
15+
python-version: ${{ matrix.python-version }}
16+
- name: Install
17+
run: |
18+
python -mpip install --upgrade pip wheel pytest pytest-cov
19+
case '${{ matrix.python-version }}' in
20+
3.6)
21+
pip install ipython==4.1.0;;
22+
3.9)
23+
;;
24+
*)
25+
exit 1;;
26+
esac
27+
python -mpip install .
28+
- name: Test
29+
run: |
30+
python -mpytest --cov --cov-branch
31+
python -mcoverage report --show-missing

.travis.yml

Lines changed: 0 additions & 18 deletions
This file was deleted.

README.rst

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,17 @@
11
ipython-autoimport
22
==================
33

4-
|PyPI| |Travis| |CodeCov|
4+
| |GitHub| |PyPI| |Build|
55
6-
.. |PyPI| image:: https://img.shields.io/pypi/v/ipython-autoimport.svg
6+
.. |GitHub|
7+
image:: https://img.shields.io/badge/github-anntzer%2Fdefopt-brightgreen
8+
:target: https://github.com/anntzer/ipython-autoimport
9+
.. |PyPI|
10+
image:: https://img.shields.io/pypi/v/ipython-autoimport.svg?color=brightgreen
711
:target: https://pypi.python.org/pypi/ipython-autoimport
8-
.. |Travis| image:: https://travis-ci.org/anntzer/ipython-autoimport.svg?branch=master
9-
:target: https://travis-ci.org/anntzer/ipython-autoimport
10-
.. |CodeCov| image:: https://codecov.io/gh/anntzer/ipython-autoimport/master.svg
11-
:target: https://codecov.io/gh/anntzer/ipython-autoimport
12+
.. |Build|
13+
image:: https://img.shields.io/github/workflow/status/anntzer/ipython-autoimport/build
14+
:target: https://github.com/anntzer/ipython-autoimport/actions
1215
1316
Automagically import missing modules in IPython: instead of ::
1417

azure-pipelines.yml

Lines changed: 0 additions & 48 deletions
This file was deleted.

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
],
1717
py_modules=["ipython_autoimport"],
1818
package_dir={"": "lib"},
19-
python_requires=">=3.4",
19+
python_requires=">=3.6",
2020
setup_requires=["setuptools_scm"],
2121
use_scm_version=lambda: {
2222
"version_scheme": "post-release",

0 commit comments

Comments
 (0)