Commit Graph

45 Commits

Author SHA1 Message Date
Manu 9cabbbd193 Input to change macOS version for building 2024-04-08 16:24:31 +01:00
Manu 7642002573 Fix stalebot config 2024-04-07 08:40:45 +01: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
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 f1e1ea4538 Update type of `debug_enabled` input. 2023-02-18 16:23:30 +00:00
Manu ef297bbf4b
Avoid autostart warning when autostart disabled (#1549) 2023-01-20 12:25:58 +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 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 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
Samuel 2f6dd6e5ed
Integrate codecov.io. By @samuel-w (#719) 2020-11-19 07:47:14 +08:00
Manu 2f47c388ce
Keep version number in one place only. Clean up Makefile vars (#642) 2020-09-10 13:26:38 +08:00
Manu f6e7b54c9a Reduce tests on macOS and increase limit. Fixes #632 2020-09-09 08:34:50 +08:00
Samuel Woon 976e3dae83
CI: Set 10 minute test time. By @samuel-w
To prevent infinite loops from running for 6 hours (default). 10 minutes was chosen as previous actions have finished in under 4 minutes, while allowing some leeway.
2020-08-10 16:33:14 +08:00
Manu 2f68b2795c
Fix tests for PyQt 5.15 on Linux. By @samuel-w (#573) 2020-08-10 15:57:13 +08:00
samuel-w 30245cb451
CI Fix: Update repositories before installing 2020-06-22 16:16:46 +08:00
Manu 82844a17b4
Add macOS notarization, use Github Workflows for testing (#407)
* Improve macOS packaging, add notarization.
* Properly use QApplication while testing, remove workarounds.
* Use Github Workflows instead of Travis.
* Remove outdated test workaround.
2020-03-03 13:19:36 +08:00