diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c7d2a8f1..2a1ab0aa 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,6 +7,7 @@ on: - 'v*' pull_request: branches: main + workflow_dispatch: jobs: code_quality: @@ -17,7 +18,7 @@ jobs: - name: Setup Python uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: '3.10' - name: Install flake8 run: | @@ -33,8 +34,8 @@ jobs: strategy: fail-fast: false matrix: - python-version: [ '3.7', '3.8', '3.9'] - ckan-version: ["2.9", "2.10"] + python-version: ['3.10'] + ckan-version: ["2.10", "2.11"] name: Python ${{ matrix.python-version }} extension test services: diff --git a/ckanext/saml2auth/tests/responses/unsigned0.xml b/ckanext/saml2auth/tests/responses/unsigned0.xml index 7398230e..e56f73f2 100644 --- a/ckanext/saml2auth/tests/responses/unsigned0.xml +++ b/ckanext/saml2auth/tests/responses/unsigned0.xml @@ -17,17 +17,17 @@ _ce3d2948b4cf20146dee0a0b3dd6f69b6cf86f62d7 - + {{ entity_id }} - + urn:oasis:names:tc:SAML:2.0:ac:classes:Password diff --git a/ckanext/saml2auth/tests/test_helpers.py b/ckanext/saml2auth/tests/test_helpers.py index 46d692e6..5fd4f7db 100644 --- a/ckanext/saml2auth/tests/test_helpers.py +++ b/ckanext/saml2auth/tests/test_helpers.py @@ -30,7 +30,7 @@ def test_generate_password(): password = h.generate_password() assert len(password) == 8 - assert type(password) == str + assert isinstance(password, str), "Password must be a string" def test_default_login_disabled_by_default(): diff --git a/setup.py b/setup.py index cc2da1c6..e905d59f 100644 --- a/setup.py +++ b/setup.py @@ -41,8 +41,7 @@ long_description_content_type='text/markdown', # The project's main homepage. - url='https://github.com/keitaroinc/'\ - 'ckanext-saml2auth', + url='https://github.com/keitaroinc/ckanext-saml2auth', # Author details author='''Keitaro Inc''',