Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/analysis-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -213,6 +213,13 @@ jobs:
ref: ${{ matrix.nextcloud }}
path: apps/files_lock

- name: Checkout Circles
uses: actions/checkout@v6
with:
repository: nextcloud/circles
ref: ${{ matrix.nextcloud }}
path: apps/circles

- name: Set up & run Nextcloud
env:
DB_PORT: 4444
Expand All @@ -224,6 +231,7 @@ jobs:
./occ config:system:set loglevel --value=0 --type=integer
./occ config:system:set debug --value=true --type=boolean
./occ config:system:set ratelimit.protection.enabled --value=false --type=boolean
./occ config:system:set overwrite.cli.url --value="http://localhost:8080"
./occ app:enable notifications
PHP_CLI_SERVER_WORKERS=2 php -S localhost:8080 &

Expand All @@ -233,6 +241,9 @@ jobs:
- name: Enable Notes
run: ./occ app:enable notes

- name: Enable Circles
run: php occ app:enable circles

- name: Checkout NcPyApi
uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -379,6 +390,13 @@ jobs:
ref: ${{ matrix.nextcloud }}
path: apps/activity

- name: Checkout Circles
uses: actions/checkout@v6
with:
repository: nextcloud/circles
ref: ${{ matrix.nextcloud }}
path: apps/circles

- name: Set up & run Nextcloud
env:
DB_PORT: 4444
Expand All @@ -390,10 +408,14 @@ jobs:
./occ config:system:set loglevel --value=0 --type=integer
./occ config:system:set debug --value=true --type=boolean
./occ config:system:set ratelimit.protection.enabled --value=false --type=boolean
./occ config:system:set overwrite.cli.url --value="http://localhost:8080"
./occ app:enable notifications
./occ app:enable activity
PHP_CLI_SERVER_WORKERS=2 php -S localhost:8080 &

- name: Enable Circles
run: php occ app:enable circles

- name: Checkout NcPyApi
uses: actions/checkout@v6
with:
Expand Down
1 change: 1 addition & 0 deletions nc_py_api/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,4 @@
from .files import FilePermissions, FsNode, LockType, SystemTag
from .files.sharing import ShareType
from .nextcloud import AsyncNextcloud, AsyncNextcloudApp, Nextcloud, NextcloudApp
from .teams import Circle, CircleConfig, Member, MemberLevel, MemberType
4 changes: 4 additions & 0 deletions nc_py_api/nextcloud.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
from .loginflow_v2 import _AsyncLoginFlowV2API, _LoginFlowV2API
from .notes import _AsyncNotesAPI
from .notifications import _AsyncNotificationsAPI, _NotificationsAPI
from .teams import _AsyncTeamsAPI
from .user_status import _AsyncUserStatusAPI
from .users import _AsyncUsersAPI, _UsersAPI
from .users_groups import _AsyncUsersGroupsAPI, _UsersGroupsAPI
Expand Down Expand Up @@ -155,6 +156,8 @@ class _AsyncNextcloudBasic(ABC): # pylint: disable=too-many-instance-attributes
"""Nextcloud API for managing user notifications"""
talk: _AsyncTalkAPI
"""Nextcloud Talk API"""
teams: _AsyncTeamsAPI
"""Nextcloud API for managing Teams (Circles)"""
users: _AsyncUsersAPI
"""Nextcloud API for managing users."""
users_groups: _AsyncUsersGroupsAPI
Expand All @@ -176,6 +179,7 @@ def __init__(self, session: AsyncNcSessionBasic):
self.notes = _AsyncNotesAPI(session)
self.notifications = _AsyncNotificationsAPI(session)
self.talk = _AsyncTalkAPI(session)
self.teams = _AsyncTeamsAPI(session)
self.users = _AsyncUsersAPI(session)
self.users_groups = _AsyncUsersGroupsAPI(session)
self.user_status = _AsyncUserStatusAPI(session)
Expand Down
Loading