Skip to content

Commit

Permalink
[chores] Formatted code and docs, updated CI configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
pandafy committed Aug 12, 2024
1 parent 4668a64 commit 83c10cf
Show file tree
Hide file tree
Showing 10 changed files with 239 additions and 208 deletions.
10 changes: 0 additions & 10 deletions .coveragerc

This file was deleted.

29 changes: 15 additions & 14 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: |
**/requirements*.txt
- name: Install Dependencies
id: deps
Expand All @@ -55,26 +58,24 @@ jobs:
- name: Tests
if: ${{ !cancelled() && steps.deps.conclusion == 'success' }}
run: |
coverage run runtests.py --parallel
coverage run runtests.py
coverage combine
coverage xml
- name: Upload Coverage
if: ${{ success() }}
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
COVERALLS_FLAG_NAME: python-${{ matrix.python-version }}-django-${{ matrix.django-version }}
COVERALLS_PARALLEL: true
uses: coverallsapp/github-action@v2
with:
parallel: true
format: cobertura
flag-name: python-${{ matrix.env.env }}
github-token: ${{ secrets.GITHUB_TOKEN }}

coveralls:
name: Finish Coveralls
needs: build
runs-on: ubuntu-latest
container: python:3-slim
steps:
- name: Finished
run: |
pip3 install --upgrade coveralls
coveralls --finish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Coveralls Finished
uses: coverallsapp/github-action@v2
with:
parallel-finished: true
42 changes: 24 additions & 18 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ Version 1.0.0 [2022-02-25]
Changes
~~~~~~~

- Converted geocoding test to check
`#90 <https://github.com/openwisp/django-loci/issues/90>`_
- Use ``ReconnectingWebsocket`` to websocket connection
`#101 <https://github.com/openwisp/django-loci/issues/101>`_
- Converted geocoding test to check `#90
<https://github.com/openwisp/django-loci/issues/90>`_
- Use ``ReconnectingWebsocket`` to websocket connection `#101
<https://github.com/openwisp/django-loci/issues/101>`_
- Dropped support for Python ``3.6``
- Added support for Python ``3.8`` and ``3.9``
- Added support for Django ``3.2.x`` and ``4.0.x``
Expand All @@ -37,36 +37,37 @@ Changes
Version 0.4.3 [2021-06-29]
--------------------------

- The dependency on the Pillow library was updated to a recent
version which was patched for security vulnerabilities
- The dependency on the Pillow library was updated to a recent version
which was patched for security vulnerabilities
- Several other dependencies and test dependencies were updated
(django-leaflet, geopy, pytest-django, pytest-asyncio, pytest-cov,
responses, openwisp-utils)

Version 0.4.2 [2021-03-16]
--------------------------

- Fixed broken UI in inline geo selection flow caused by a JS change in django
(`issue #85 <https://github.com/openwisp/django-loci/issues/85>`_)
- Fixed broken UI in inline geo selection flow caused by a JS change in
django (`issue #85
<https://github.com/openwisp/django-loci/issues/85>`_)

Version 0.4.1 [2021-02-24]
--------------------------

Bugfixes
~~~~~~~~

- Fixed the ``DJANGO_LOCI_GEOCODE_STRICT_TEST`` setting,
which internally was using a different name, therefore the documented
setting was not working
- Fixed the ``DJANGO_LOCI_GEOCODE_STRICT_TEST`` setting, which internally
was using a different name, therefore the documented setting was not
working

Version 0.4.0 [2020-11-19]
--------------------------

Features
~~~~~~~~

- [ux] Automatically fetch map coordinates from address field and vice versa +
configurable geocoding
- [ux] Automatically fetch map coordinates from address field and vice
versa + configurable geocoding

Changes
~~~~~~~
Expand All @@ -77,7 +78,8 @@ Changes
Bugfixes
~~~~~~~~

- [fix] Fixed integrity error in ``floorplan.floor`` when ``is_mobile=True``
- [fix] Fixed integrity error in ``floorplan.floor`` when
``is_mobile=True``
- [fix] Fixed corner case involving restoring ``is_mobile=False``

Version 0.3.4 [2020-08-16]
Expand All @@ -90,21 +92,25 @@ Version 0.3.3 [2020-07-25]
--------------------------

- [fix] Fixed websocket connect error for location change view
- [deps] Added support for Pillow~=7.2.0 & openwisp-utils~=0.5.1 and dropped their lower versions
- [deps] Added support for Pillow~=7.2.0 & openwisp-utils~=0.5.1 and
dropped their lower versions
- [deps] Added support for django-leaflet version 0.28

Version 0.3.2 [2020-07-01]
--------------------------

- [fix] Fixed bug in floorplan fields
- [fix] Fixed bug which caused geographic map to disappears on narrow screens
- [fix] Fixed bug which caused geographic map to disappears on narrow
screens
- [fix] Fixed bug in JS logic
- [change] Allow to create an indoor location without specifying indoor coordinates
- [change] Allow to create an indoor location without specifying indoor
coordinates

Version 0.3.1 [2020-01-21]
--------------------------

- Added support to django 3.0, dropped support for django versions older than 2.2
- Added support to django 3.0, dropped support for django versions older
than 2.2
- [admin] Fixed UX issue with ``is_mobile`` checkbox

Version 0.3.0 [2020-01-13]
Expand Down
3 changes: 2 additions & 1 deletion CONTRIBUTING.rst
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
Please refer to the `Contribution Guidelines <https://github.com/openwisp/django-loci#contributing>`_.
Please refer to the `Contribution Guidelines
<https://github.com/openwisp/django-loci#contributing>`_.
Loading

0 comments on commit 83c10cf

Please sign in to comment.