CI is now GitHub Actions, closes #143

This commit is contained in:
Simon Willison 2020-08-28 15:41:29 -07:00
commit 01c7784be5
4 changed files with 5 additions and 47 deletions

View file

@ -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

View file

@ -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)

View file

@ -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

View file

@ -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",