-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'release/0.8' into main
- Loading branch information
Showing
7 changed files
with
99 additions
and
92 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
name: unit tests | ||
|
||
on: | ||
push: # run on every push or PR to any branch | ||
pull_request: | ||
schedule: # run automatically on main branch each Tuesday at 11am | ||
- cron: "0 16 * * 2" | ||
|
||
jobs: | ||
python-unit: | ||
name: Python unit tests | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
python: ["3.9", "3.10", "3.11"] | ||
django: ["3.2", "4.0", "4.1", "4.2"] | ||
steps: | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
|
||
- name: Setup Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: ${{ matrix.python }} | ||
|
||
# We base the python cache on the hash of all requirements files, so that | ||
# if any change, the cache is invalidated. | ||
- name: Cache pip | ||
uses: actions/cache@v3 | ||
with: | ||
path: ~/.cache/pip | ||
key: pip-${{ hashFiles('setup.py') }} | ||
restore-keys: | | ||
pip-${{ hashFiles('setup.py') }} | ||
pip- | ||
- name: Install package with dependencies | ||
run: | | ||
pip install -e . | ||
pip install -e '.[test]' | ||
pip install codecov | ||
- name: Setup test settings | ||
run: | | ||
cp ci/testsettings.py testsettings.py | ||
python -c "import uuid; print('SECRET_KEY = \'%s\'' % uuid.uuid4())" >> testsettings.py | ||
- name: Run pytest | ||
run: python -m pytest --cov=pucas --cov-report=xml | ||
|
||
- name: Upload test coverage to Codecov | ||
uses: codecov/codecov-action@v3 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,6 @@ | ||
default_app_config = 'pucas.apps.PucasConfig' | ||
|
||
__version_info__ = (0, 7, 0, None) | ||
__version_info__ = (0, 8, 0, None) | ||
|
||
# Dot-connect all but the last. Last is dash-connected if not None. | ||
__version__ = '.'.join([str(i) for i in __version_info__[:-1]]) | ||
__version__ = ".".join([str(i) for i in __version_info__[:-1]]) | ||
if __version_info__[-1] is not None: | ||
__version__ += ('-%s' % (__version_info__[-1],)) | ||
__version__ += "-%s" % (__version_info__[-1],) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
from django.conf.urls import url | ||
from django.urls import path | ||
from django_cas_ng.views import LoginView, LogoutView, CallbackView | ||
|
||
urlpatterns = [ | ||
url(r'^login/$', LoginView.as_view(), name='cas_ng_login'), | ||
url(r'^logout/$', LogoutView.as_view(), name='cas_ng_logout'), | ||
url(r'^callback/$', CallbackView.as_view(), name='cas_ng_proxy_callback'), | ||
path("login/", LoginView.as_view(), name="cas_ng_login"), | ||
path("logout/", LogoutView.as_view(), name="cas_ng_logout"), | ||
path("callback/", CallbackView.as_view(), name="cas_ng_proxy_callback"), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters