From 01c7784be54d14ee5b653753c38005d823fcdd09 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Fri, 28 Aug 2020 15:41:29 -0700 Subject: [PATCH] CI is now GitHub Actions, closes #143 --- .travis.yml | 42 ------------------------------------------ README.md | 2 +- docs/index.rst | 6 +++--- setup.py | 2 +- 4 files changed, 5 insertions(+), 47 deletions(-) delete mode 100644 .travis.yml diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 0360337..0000000 --- a/.travis.yml +++ /dev/null @@ -1,42 +0,0 @@ -language: python -dist: bionic - -# 3.6 is listed first so it gets used for the later build stages -python: - - "3.6" - - "3.7" - - "3.8" - -before_install: - # SpatiaLite needed for the --load-extension test: - - sudo apt-get update - - sudo apt-get -y install libsqlite3-mod-spatialite - -script: - - pip install -U pip wheel - - pip install .[test] - # Only run the numpy/pandas tests on Python 3.7: - - python -c "import sys; print(sys.version_info.minor == 7)" | grep True > /dev/null && pip install pandas || true - - pytest - -cache: - directories: - - $HOME/.cache/pip - -jobs: - include: - - stage: release tagged version - if: tag IS present - language: python - python: 3.6 - script: - - pip install -U pip wheel - deploy: - - provider: pypi - user: simonw - distributions: sdist bdist_wheel - password: ${PYPI_PASSWORD} - on: - branch: main - tags: true - repo: simonw/sqlite-utils diff --git a/README.md b/README.md index e5a3c30..acd5356 100644 --- a/README.md +++ b/README.md @@ -2,7 +2,7 @@ [![PyPI](https://img.shields.io/pypi/v/sqlite-utils.svg)](https://pypi.org/project/sqlite-utils/) [![Changelog](https://img.shields.io/github/v/release/simonw/sqlite-utils?include_prereleases&label=changelog)](https://sqlite-utils.readthedocs.io/en/stable/changelog.html) -[![Travis CI](https://travis-ci.com/simonw/sqlite-utils.svg?branch=main)](https://travis-ci.com/simonw/sqlite-utils) +[![Tests](https://github.com/simonw/sqlite-utils/workflows/Test/badge.svg)](https://github.com/simonw/sqlite-utils/actions?query=workflow%3ATest) [![Documentation Status](https://readthedocs.org/projects/sqlite-utils/badge/?version=latest)](http://sqlite-utils.readthedocs.io/en/latest/?badge=latest) [![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/sqlite-utils/blob/main/LICENSE) diff --git a/docs/index.rst b/docs/index.rst index f828df4..6fe980f 100644 --- a/docs/index.rst +++ b/docs/index.rst @@ -2,14 +2,14 @@ sqlite-utils |version| ======================= -|PyPI| |Changelog| |Travis CI| |License| +|PyPI| |Changelog| |CI| |License| .. |PyPI| image:: https://img.shields.io/pypi/v/sqlite-utils.svg :target: https://pypi.org/project/sqlite-utils/ .. |Changelog| image:: https://img.shields.io/github/v/release/simonw/sqlite-utils?include_prereleases&label=changelog :target: https://sqlite-utils.readthedocs.io/en/stable/changelog.html -.. |Travis CI| image:: https://travis-ci.com/simonw/sqlite-utils.svg?branch=main - :target: https://travis-ci.com/simonw/sqlite-utils +.. |CI| image:: https://github.com/simonw/sqlite-utils/workflows/Test/badge.svg + :target: https://github.com/simonw/sqlite-utils/actions .. |License| image:: https://img.shields.io/badge/license-Apache%202.0-blue.svg :target: https://github.com/simonw/sqlite-utils/blob/main/LICENSE diff --git a/setup.py b/setup.py index f3f97f1..df11f38 100644 --- a/setup.py +++ b/setup.py @@ -39,7 +39,7 @@ setup( "Changelog": "https://sqlite-utils.readthedocs.io/en/stable/changelog.html", "Source code": "https://github.com/simonw/sqlite-utils", "Issues": "https://github.com/simonw/sqlite-utils/issues", - "CI": "https://travis-ci.com/simonw/sqlite-utils", + "CI": "https://github.com/simonw/sqlite-utils/actions", }, classifiers=[ "Development Status :: 5 - Production/Stable",