Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Move CI provider to GH Actions #82

Merged
merged 4 commits into from
Jan 31, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: "CI" # Note that this name appears in the README's badge
on: [push]
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.7"
- "3.8"
- "3.9"
- "pypy-3.7"
- "pypy-3.8"
name: Python ${{ matrix.python-version }} in use
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
# Note that all envs will have the default version of Python available,
# too. This is 3.8 at time of writing.
python-version: ${{ matrix.python-version }}
architecture: "x64" # optional x64 (default) or x86.
- name: Install tox
run: pip install tox
- name: Run tox
run: tox
28 changes: 0 additions & 28 deletions .travis.yml

This file was deleted.

12 changes: 9 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Mozilla Product Details for Django
==================================

|Travis| |PyPI|
|GHACI| |PyPI|

**Mozilla Product Details** is a
`library <http://viewvc.svn.mozilla.org/vc/libs/product-details/README?view=markup>`__
Expand Down Expand Up @@ -202,11 +202,12 @@ versions of Python available, install ``nose``, ``mock``, ``requests``,
``responses`` and ``Django`` (see ``tox.ini``'s ``deps``) and run the
tests in your current Python version by running ``./runtests.py``.

.. |Travis| image:: https://img.shields.io/travis/mozilla/django-product-details.svg
:target: https://travis-ci.org/mozilla/django-product-details/
.. |PyPI| image:: https://img.shields.io/pypi/v/django-mozilla-product-details.svg
:target: https://pypi.python.org/pypi/django-mozilla-product-details

.. |GHACI| image:: https://github.com/mozilla/django-product-details/actions/workflows/ci.yml/badge.svg
:target: https://github.com/mozilla/django-product-details/actions

Releasing
---------

Expand All @@ -219,6 +220,11 @@ Releasing
Change Log
----------

1.0.2 - 2022-01-31
~~~~~~~~~~~~~~~~~~

- Move CI to Github Actions. Thanks stevejalim!

1.0.1 - 2022-01-13
~~~~~~~~~~~~~~~~~~

Expand Down
2 changes: 1 addition & 1 deletion product_details/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class MissingJSONData(IOError):
pass


__version__ = "1.0.1"
__version__ = "1.0.2"
__all__ = ["__version__", "product_details", "version_compare"]

log = logging.getLogger("product_details")
Expand Down
7 changes: 3 additions & 4 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,9 @@ deps =
dj32: Django>=3.2,<4.0

nose==1.3.7

py{37,38,39,py3}: mock==4.0.3
py{37,38,39,py3}: responses==0.15.0
py{37,38,39,py3}: requests==2.26.0
mock==4.0.3
responses==0.15.0
requests==2.26.0

[testenv:flake8]
deps = flake8
Expand Down