Skip to content

Commit 027622b

Browse files
committed
updated CI to test on newer NC versions
1 parent 2c58908 commit 027622b

File tree

2 files changed

+15
-56
lines changed

2 files changed

+15
-56
lines changed

.github/workflows/analysis-coverage.yml

Lines changed: 13 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,8 @@ env:
2020
APP_PORT: 9009
2121
NC_AUTH_USER: "admin"
2222
NC_AUTH_PASS: "adminpassword"
23-
NEXTCLOUD_VERSION: 28.0.7
24-
NEXTCLOUD_BRANCH: stable28
23+
NEXTCLOUD_VERSION: 30.0.5
24+
NEXTCLOUD_BRANCH: stable30
2525

2626
jobs:
2727
analysis:
@@ -43,7 +43,7 @@ jobs:
4343
tests-maria:
4444
needs: [analysis]
4545
runs-on: ubuntu-22.04
46-
name: 28.X.X • 🐘8.1 • 🐍3.10 • Maria
46+
name: ${{ env.NEXTCLOUD_VERSION }} • 🐘8.1 • 🐍3.10 • Maria
4747
timeout-minutes: 60
4848

4949
services:
@@ -107,7 +107,7 @@ jobs:
107107
with:
108108
path: apps/app_api
109109
repository: nextcloud/app_api
110-
ref: stable29
110+
ref: ${{ env.NEXTCLOUD_BRANCH }}
111111

112112
- name: Install AppAPI
113113
run: |
@@ -182,7 +182,7 @@ jobs:
182182
tests-pgsql:
183183
needs: [analysis]
184184
runs-on: ubuntu-22.04
185-
name: 28.X.X • 🐘8.2 • 🐍3.11 • PgSQL
185+
name: ${{ env.NEXTCLOUD_VERSION }} • 🐘8.2 • 🐍3.11 • PgSQL
186186
env:
187187
NC_dbname: nextcloud_abz
188188
DATABASE_PGSQL: 1
@@ -250,7 +250,7 @@ jobs:
250250
with:
251251
path: apps/app_api
252252
repository: nextcloud/app_api
253-
ref: stable29
253+
ref: ${{ env.NEXTCLOUD_BRANCH }}
254254

255255
- name: Install AppAPI
256256
run: |
@@ -325,7 +325,7 @@ jobs:
325325
tests-oci:
326326
needs: [analysis]
327327
runs-on: ubuntu-22.04
328-
name: stable28 • 🐘8.1 • 🐍3.11 • OCI
328+
name: ${{ env.NEXTCLOUD_BRANCH }} • 🐘8.1 • 🐍3.11 • OCI
329329
timeout-minutes: 60
330330

331331
services:
@@ -393,7 +393,7 @@ jobs:
393393
with:
394394
path: apps/app_api
395395
repository: nextcloud/app_api
396-
ref: stable29
396+
ref: ${{ env.NEXTCLOUD_BRANCH }}
397397

398398
- name: Install AppAPI
399399
run: |
@@ -439,7 +439,7 @@ jobs:
439439
strategy:
440440
fail-fast: false
441441
matrix:
442-
nextcloud: [ 'stable28', 'stable29', 'stable30' ]
442+
nextcloud: [ 'stable30', 'stable31' ]
443443
timeout-minutes: 60
444444

445445
services:
@@ -524,20 +524,11 @@ jobs:
524524
run: python3 -m pip -v install ".[dev]"
525525

526526
- name: Checkout AppAPI
527-
if: ${{ matrix.nextcloud != 'stable30' }}
528-
uses: actions/checkout@v4
529-
with:
530-
path: apps/app_api
531-
repository: nextcloud/app_api
532-
ref: stable29
533-
534-
- name: Checkout AppAPI
535-
if: ${{ matrix.nextcloud == 'stable30' }}
536527
uses: actions/checkout@v4
537528
with:
538529
path: apps/app_api
539530
repository: nextcloud/app_api
540-
ref: stable30
531+
ref: ${{ matrix.nextcloud }}
541532

542533
- name: Install AppAPI
543534
run: |
@@ -616,7 +607,7 @@ jobs:
616607
strategy:
617608
fail-fast: false
618609
matrix:
619-
nextcloud: [ 'stable28', 'stable29', 'stable30' ]
610+
nextcloud: [ 'stable30', 'stable31' ]
620611
env:
621612
NC_dbname: nextcloud_abz
622613
DATABASE_PGSQL: 1
@@ -693,20 +684,11 @@ jobs:
693684
run: python3 -m pip -v install ".[dev]"
694685

695686
- name: Checkout AppAPI
696-
if: ${{ matrix.nextcloud != 'stable30' }}
697-
uses: actions/checkout@v4
698-
with:
699-
path: apps/app_api
700-
repository: nextcloud/app_api
701-
ref: stable29
702-
703-
- name: Checkout AppAPI
704-
if: ${{ matrix.nextcloud == 'stable30' }}
705687
uses: actions/checkout@v4
706688
with:
707689
path: apps/app_api
708690
repository: nextcloud/app_api
709-
ref: stable30
691+
ref: ${{ matrix.nextcloud }}
710692

711693
- name: Install AppAPI
712694
run: |
@@ -790,7 +772,7 @@ jobs:
790772
strategy:
791773
fail-fast: false
792774
matrix:
793-
nextcloud: [ 'stable27', 'stable28', 'stable29', 'stable30', 'master' ]
775+
nextcloud: [ 'stable30', 'stable31' ]
794776
env:
795777
NEXTCLOUD_URL: "http://localhost:8080/index.php"
796778
timeout-minutes: 60
@@ -822,15 +804,13 @@ jobs:
822804

823805
- name: Checkout Notes
824806
uses: actions/checkout@v4
825-
if: ${{ !startsWith(matrix.nextcloud, 'master') }}
826807
with:
827808
repository: nextcloud/notes
828809
ref: "main"
829810
path: apps/notes
830811

831812
- name: Checkout Files Locking
832813
uses: actions/checkout@v4
833-
if: ${{ !startsWith(matrix.nextcloud, 'stable27') && !startsWith(matrix.nextcloud, 'master') }}
834814
with:
835815
repository: nextcloud/files_lock
836816
ref: ${{ matrix.nextcloud }}
@@ -850,11 +830,9 @@ jobs:
850830
PHP_CLI_SERVER_WORKERS=2 php -S localhost:8080 &
851831
852832
- name: Enable Notes
853-
if: ${{ !startsWith(matrix.nextcloud, 'stable27') && !startsWith(matrix.nextcloud, 'master') }}
854833
run: ./occ app:enable notes
855834

856835
- name: Enable Files Locking
857-
if: ${{ !startsWith(matrix.nextcloud, 'stable27') && !startsWith(matrix.nextcloud, 'master') }}
858836
run: ./occ app:enable files_lock
859837

860838
- name: Checkout NcPyApi

README.md

Lines changed: 2 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -8,39 +8,22 @@
88
[![Docs](https://github.com/cloud-py-api/nc_py_api/actions/workflows/docs.yml/badge.svg)](https://cloud-py-api.github.io/nc_py_api/)
99
[![codecov](https://codecov.io/github/cloud-py-api/nc_py_api/branch/main/graph/badge.svg?token=C91PL3FYDQ)](https://codecov.io/github/cloud-py-api/nc_py_api)
1010

11-
![NextcloudVersion](https://img.shields.io/badge/Nextcloud-27%20%7C%2028%20%7C%2029%20%7C%2030-blue)
11+
![NextcloudVersion](https://img.shields.io/badge/Nextcloud-%2028%20%7C%2029%20%7C%2030%20%7C%2031-blue)
1212
![PythonVersion](https://img.shields.io/badge/python-3.10%20%7C%203.11%20%7C%203.12-blue)
1313
![impl](https://img.shields.io/pypi/implementation/nc_py_api)
1414
![pypi](https://img.shields.io/pypi/v/nc_py_api.svg)
1515

1616
Python library that provides a robust and well-documented API that allows developers to interact with and extend Nextcloud's functionality.
1717

1818
### The key features are:
19+
1920
* **Fast**: High performance, and as low-latency as possible.
2021
* **Intuitive**: Fast to code, easy to use.
2122
* **Reliable**: Minimum number of incompatible changes.
2223
* **Robust**: All code is covered with tests as much as possible.
2324
* **Easy**: Designed to be easy to use with excellent documentation.
2425
* **Sync + Async**: Provides both sync and async APIs.
2526

26-
### Capabilities
27-
| **_Capability_** | Nextcloud 27 | Nextcloud 28 | Nextcloud 29 | Nextcloud 30 |
28-
|------------------------------|:------------:|:------------:|:------------:|:------------:|
29-
| Calendar |||||
30-
| File System & Tags |||||
31-
| Nextcloud Talk |||||
32-
| Notifications |||||
33-
| Shares |||||
34-
| Users & Groups |||||
35-
| User & Weather status |||||
36-
| Other APIs** |||||
37-
| Talk Bot API* |||||
38-
| Settings UI API* | N/A | N/A |||
39-
| TaskProcessing Provider API* | N/A | N/A | N/A ||
40-
41-
&ast;_available only for **NextcloudApp**_<br>
42-
&ast;&ast;_Activity, Notes_
43-
4427
### Differences between the Nextcloud and NextcloudApp classes
4528

4629
The **Nextcloud** class functions as a standard Nextcloud client,
@@ -57,8 +40,6 @@ but NextcloudApp has a broader selection since applications typically require ac
5740
Any code written for the Nextcloud class can easily be adapted for use with the NextcloudApp class,
5841
as long as it doesn't involve calls that require user password verification.
5942

60-
**NextcloudApp** avalaible only from Nextcloud 27.1.2 and greater version with installed **AppAPI**.
61-
6243
### Nextcloud skeleton app in Python
6344

6445
```python3

0 commit comments

Comments
 (0)