Commit Graph

65 Commits

Author SHA1 Message Date
TW 675010e401
Random cleanups by @ThomasWaldmann (#1879)
* fix PEP8 E721

do not compare types, for exact checks use `is` / `is not`, for instance checks use `isinstance()`

* remove redundant parentheses

* fix SiteWorker.run for empty job queue

local variable job is not assigned if queue was empty
when calling .run(), but it is used in exception handler.

* remove unreachable code in parse_diff_lines

* bug fix for unreachable code in is_worker_running

the code intended to check if *any* worker is running for
any site was *unreachable*.

this caused false negative results for site=None.

* check_failed_response: remove outdated part of docstring

* pull request template: fix relative path to LICENSE.txt

* fix typos

* use logger.warning, .warn is deprecated
2024-01-09 08:06:48 +00:00
Manu 4c7b119b3e Minor: add missing notarization env var 2023-10-27 12:07:59 +01:00
Ted Lawson 567a3546ae
Reduce number of tests. By @bigtedde (#1780) 2023-08-21 20:31:51 +01:00
jetchirag b015368fee
Integration Tests for Borg (#1716)
Move existing tests into subfolder `tests/unit`. Write integration tests that actually run the installed borg executable. Those tests can be found in `tests/integration`.  Those pytest fixtures that are the same for both kinds of tests remain in `tests/conftest.py`. The others can be found in `tests/integration/conftest.py` or `tests/unit/conftest.py`. This adds nox to the project and configures it to run the tests with different borg versions. This also updates the ci workflow to run the integration tests using nox.

* noxfile.py : Run pytest with a matrix of borg versions OR a specific borg version

* Makefile : Run using nox. Add phonies `test-unit` and `test-integration`.

* tests/conftest.py : Move some fixtures/functions to `tests/unit/conftest.py`.

* tests/test_*.py --> tests/unit/ : Move unittests and assets into subfolder

* tests/integration/ : Write integration tests.

* requirements.d/dev.txt: Add `nox` and `pkgconfig`. The latter is needed for installing new borg versions.

* .github/actions/setup/action.yml : Update to install pre-commit and nox when needed. The action now no longer installs Vorta.

* .github/actions/install-dependencies/action.yml : Install system deps of borg with this new composite action.

* .github/workflows/test.yml : Rename `test` ci to `test-unit` and update it for the new test setup.
                                              Implement `test-integration` ci.

Signed-off-by: Chirag Aggarwal <thechiragaggarwal@gmail.com>
2023-08-05 13:49:45 +00:00
Manu 50be34cabe
Use maintained stale action (#1737) 2023-06-25 21:53:29 +01:00
yfprojects 5a3a7cf58e
Run pre-commit in lint ci and polish ci setup. (#1712)
Fix phonies in Makefile and run pre-commit for lint target.
Instead of running black, flake8 and ruff the lint phony now runs pre-commit which has these tools configured as hooks.

* Makefile

Define common composite action for setting up pre-commit and python.

* .github/actions/setup/action.yml

* .github/workflows/test.yml

Update codecov/codecov-action used in test ci to v3.

* .github/workflows/test.yml
2023-05-28 15:41:58 +00:00
Divyansh Singh f0a5a36275
ci: Add ruff including print checks
Adds ruff replacing isort. Ruff comes with all flake8 rules and additional rules for print statements.

* .github/workflows/test.yml : Replace isort with ruff in comment

* .editorconfig : Update `yml` config to apply to all yaml files.

* Makefile (lint): Run ruff, remove isort

* .pre-commit-config.yaml : Remove isort, run ruff

* pyproject.toml : Configure ruff. Remove isort config.

* requirements.d/dev.txt : Add ruff, remove isort

* setup.cfg : Extend flake8 file ignore

* src/vorta/__main__.py : Add *noqa* for print statement.
2023-05-01 10:25:14 +02:00
Manu 4d65912d65
Fix pyobjc imports, bump minimum Python version (#1698) 2023-04-29 12:26:01 +01:00
i1sm3ky 7535f92ac8
PyQt6 Upgrade (#1685)
This puts Vorta on PyQt6 and starts a new main branch 0.9.

---------

Co-authored-by: real-yfprojects <real-yfprojects@users.noreply.github.com>
Co-authored-by: Manu <3916435+m3nu@users.noreply.github.com>
Co-authored-by: yfprojects <62463991+real-yfprojects@users.noreply.github.com>
2023-04-17 11:17:01 +01:00
yfprojects 79420c1271 Change check order in PR template. 2023-03-06 11:41:06 +00:00
yfprojects f1e1ea4538 Update type of `debug_enabled` input. 2023-02-18 16:23:30 +00:00
yfprojects 35d9a3b438
Adjust dev files for borgbase/vorta.borgbase.com#32 (#1585)
* Add `pre-commit` to developer requirements.

* Add virtual python environments to `.gitignore`.

* Update pull request template.

---------

Co-authored-by: real-yfprojects <real-yfprojects@users.noreply.github.com>
2023-02-14 07:38:27 +00:00
Manu ef297bbf4b
Avoid autostart warning when autostart disabled (#1549) 2023-01-20 12:25:58 +01:00
Sam bf9285a171 Fix typo in issue bug template 2023-01-18 10:54:29 +01:00
yfprojects cb4e3a11b6
Update usage of deprecated features in test.yml. (#1539) 2023-01-16 19:57:28 +01:00
Manu af8b146acc Bump build- and test versions 2022-12-23 21:52:36 +01:00
yfprojects ddcd3c7b0e
Update `actions/checkout` to v3. (#1433)
The second version of the checkout action is no longer supported by Github Actions because it uses Node.js 12.

* .github/workflows/build-macos.yml
* .github/workflows/test.yml
2022-10-15 13:53:29 +02:00
real-yfprojects 17cf8102f0
Add pull request template.
* .github/PULL_REQUEST_TEMPLATE/pull_request_template.md
2022-09-18 08:46:53 +02:00
real-yfprojects be194d92d9
Add CONTRIBUTING file.
* .github/CONTRIBUTING.md
2022-09-18 08:31:04 +02:00
yfprojects 3b40ce8e01
Create feature_request.md
* .github/ISSUE_TEMPLATE/feature_request.md
2022-09-18 08:31:03 +02:00
yfprojects 52b1e65c92
Create bug_form.yaml 2022-09-18 08:31:03 +02:00
yfprojects ff0b8883f8
Create config.yml
Link docs, discussions and FAQ on the issue page.

* .github/ISSUE_TEMPLATE/config.yml
2022-09-18 08:31:02 +02:00
yfprojects fd2d2d69cf
Update bug_report.md 2022-09-18 08:31:02 +02:00
real-yfprojects ca497f8815 Run hooks on the code base.
This adds trailing lines to files,
removes trailing white space in all the other lines and unifies line endings.
Additionally it formats the test code with `black`.
2022-08-16 18:20:34 +02:00
yfprojects ceb04d7c74
Move linting to the top in test.yml (#1391) 2022-08-15 15:43:00 +02:00
Manu 7c97f79b31 Add config files for autmatic formatting 2022-08-15 15:23:55 +02:00
Manu 33639aeaed
Add missing Qt dependency for tests (#1376) 2022-07-25 11:07:38 +02:00
Manu e53aa966fc Bump version to v0.8.7 2022-06-17 08:13:18 +04:00
Manuel Riel e0911a61f4
Add older Ubuntu version to tests (#1330) 2022-05-26 08:10:14 +04:00
Manu a9170c3b91
Minor: fix macOS build (#1284) 2022-05-06 16:29:17 +04:00
yfprojects aacf438455
Add reasonable, default ignores to flake8. (#1197) 2022-02-14 20:57:14 +04:00
Manu 3b87419431
Bump Borg version, remove PyQt pinning (#1195) 2022-02-06 15:07:41 +04:00
Daniele Basso 103634f075
Avoid reinstalling Py3.9 in macOS build workflow (#1194) 2022-02-06 13:21:50 +04:00
Manu becb6a48d0
Fix macOS CI build (#1123) 2021-11-27 20:37:18 +04:00
Manu c7a1077fec
Remove APScheduler dependency, Python 3.10 support (#1086) 2021-10-27 08:37:28 +04:00
Manu 5d5415035a
Remove PyQt5 pinning. Fixes #1011 (#1022)
* Remove PyQt5 pinning. Fixes #1011
* Bump Borg version in GH workflow.
2021-06-21 09:30:01 +04:00
Manu eb037dd41b Build fixes 2021-06-08 18:50:56 +04:00
Manu 3b57ab43a4
Option to run tests with SSH debugging (#953) 2021-04-18 21:33:48 +08:00
Manu 7dc6f83b92
Add signing to Github Action Workflow (#912) 2021-03-03 20:59:10 +08:00
Manu 6d8ad901fb
Allow to fully disable using the system keychain. (#898)
- Add option to avoid using system keychain.
- Prioritize keychains first. Then try to start them.
- Maintenance: Possible fixes for hung tests and segfault on exit on some setups.
2021-03-01 15:25:31 +08:00
Manu 7949e80381
More test fixes, avoid segfault when quitting (#877) 2021-02-22 09:45:43 +08:00
Manu 9a4bbf0d65
Remove support for deprecated macOS XML wifi list. (#868)
* Use pytest-cov plugin to avoid hangers and subproc issues.
2021-02-18 13:50:58 +08:00
Manu 3cf2ac0c41
Add rename action. By @samuel-w and @m3nu (#864)
- Add rename action for archives
- Move archive actions to submenu
- Improve tests: remove window manager dependency
2021-02-18 09:44:10 +08:00
Manu 52233a9844
Fix flaky tests (#788)
* New DB for each test, hopefully takes care of race condition when using new DB.
* Centralize timeout setting
2021-02-17 10:14:58 +08:00
Manu 305ba01a6e
Update bug_report.md 2021-02-15 15:15:32 +08:00
Manu e4eb83b9aa
Delete feature-suggestion.md 2021-02-15 15:13:48 +08:00
Manu 60e9ee89b9 Emphasize bug report details. 2021-02-15 11:18:18 +08:00
Manu 6493e1798c
Clean up supporting files (#771) 2021-01-20 12:59:37 +08:00
Manu 9b88c15a22
macOS packaging on Github Actions, update translations (#768) 2021-01-19 15:17:10 +08:00
Samuel 529b1da5b1
CI: Add python 3.9, labels, disable macOS mount test. By @samuel-w (#734) 2020-12-01 12:12:40 +08:00