Skip to content

Commit

Permalink
Move to GitHub Actions (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelm committed Mar 7, 2022
1 parent f87da64 commit 58fb08c
Show file tree
Hide file tree
Showing 6 changed files with 57 additions and 74 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
name: CI

on:
push:
branches: [ master ]
pull_request:
branches: [ master ]

jobs:
test:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.8, 3.9, "3.10"]
django-version: [3.2, 4.0]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt django==${{matrix.django-version}}
- name: Run Tests
run: |
py.test tests
style:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: ["3.10"]
django-version: [3.2]

steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install Dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements_dev.txt django==${{matrix.django-version}}
- name: Run flake8
run: |
flake8 hierarkey tests demoproject
- name: Run flake8
run: |
isort -c -rc flake8 hierarkey tests demoproject
27 changes: 0 additions & 27 deletions .travis.yml

This file was deleted.

8 changes: 1 addition & 7 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,6 @@ django-hierarkey -- Hierarchical key-value store
.. image:: https://readthedocs.org/projects/django-hierarkey/badge/?version=latest
:target: https://django-hierarkey.readthedocs.io/

.. image:: https://travis-ci.org/raphaelm/django-hierarkey.svg?branch=master
:target: https://travis-ci.org/raphaelm/django-hierarkey

.. image:: https://codecov.io/gh/raphaelm/django-hierarkey/branch/master/graph/badge.svg
:target: https://codecov.io/gh/raphaelm/django-hierarkey

This package allows you to attach a key-value store to a model, e.g. to store preferences of
an user or a customer. The package supports arbitrary datatypes, defaults and model hierarchies,
i.e. you can define a different model instance as your instance's parent and the values of the
Expand All @@ -21,7 +15,7 @@ parent instance will be used as default values for the child instances.
This approach has been in use in `pretix`_ for quite a while, so it has been tested in
production.

Tested with Python 3.4-3.7 and Django 1.9-2.2.
Tested with Python 3.8-3.10 and Django 3.2-4.0.

License
-------
Expand Down
2 changes: 1 addition & 1 deletion demoproject/demoapp/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


class DemoConfig(AppConfig):
name = 'demo'
name = 'demoapp'
2 changes: 1 addition & 1 deletion tests/testapp/apps.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@


class DemoConfig(AppConfig):
name = 'demo'
name = 'tests.testapp'
38 changes: 0 additions & 38 deletions tox.ini

This file was deleted.

0 comments on commit 58fb08c

Please sign in to comment.