Skip to content

Commit

Permalink
Add GitHub actions
Browse files Browse the repository at this point in the history
  • Loading branch information
Grzegorz Tężycki committed Apr 8, 2021
1 parent e850f9d commit 599e2c4
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 3 deletions.
27 changes: 27 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
name: UnitTests

on: [push, pull_request]

jobs:

tests:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: [2.7, 3.6, 3.8]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade PIP
run: python -m pip install --upgrade pip
- name: Install tox
run: python -m pip install --upgrade tox
- name: Run tests
run: |
export PYV="py"`echo "${{ matrix.python-version }}" | tr -d '.'`
tox -e `tox -l | grep $PYV | tr "\n" ","`
9 changes: 6 additions & 3 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,13 @@ django-admin-shell
------------------

.. image:: https://badge.fury.io/py/django-admin-shell.svg
:target: https://badge.fury.io/py/django-admin-shell
:target: https://pypi.org/project/django-admin-shell/


.. image:: https://github.com/djk2/django-admin-shell/actions/workflows/tests.yaml/badge.svg?branch=master
:target: https://github.com/djk2/django-admin-shell/actions/workflows/tests.yaml/
:alt: GitHub Actions

.. image:: https://travis-ci.org/djk2/django-admin-shell.svg?branch=master
:target: https://travis-ci.org/djk2/django-admin-shell

.. image:: https://requires.io/github/djk2/django-admin-shell/requirements.svg?branch=master
:target: https://requires.io/github/djk2/django-admin-shell/requirements/?branch=master
Expand Down

0 comments on commit 599e2c4

Please sign in to comment.