Commit Graph

19 Commits

Author SHA1 Message Date
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
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
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 a4ab7e713a
Specify build system (minor) (#1580) 2023-02-04 17:23:34 +00:00
Alan Barros de Oliveira 78863544ae
Remove pip install dependency. By @abdeoliveira (#1578) 2023-02-04 14:43:21 +00:00
Manu 2e589a065a Update translations (and Transifex config) 2023-01-22 12:52:33 +01:00
Manu 7c97f79b31 Add config files for autmatic formatting 2022-08-15 15:23:55 +02:00
Manu f4a85e82c4
Bump macOS updater to Sparkle 2.0 (#1186) 2022-01-27 10:56:10 +04:00
Manu 7dc6f83b92
Add signing to Github Action Workflow (#912) 2021-03-03 20:59:10 +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 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
Manu 2f47c388ce
Keep version number in one place only. Clean up Makefile vars (#642) 2020-09-10 13:26:38 +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
Manu f7142f4eb1 Update Makefile for Flatpak releases. 2019-06-20 20:00:48 +08:00
TW e15675599e i18n infrastructure and policy (#134)
- Adds support for translating Python strings and .UI files with Qt's `QTranslator` class.
- Integrates the Transifex cloud translation service for managing translations.
- Adds translation policy and guidelines to `CONTRIBUTING.md`
2019-01-20 11:50:10 +08:00
Manuel Riel 5ef40693b0
Remove leftover Sentry references. Fixes #127 (#142) 2019-01-20 10:03:46 +08:00
Benjamin Pereto c5494f455c Add Background notifications for Linux (#114)
- Add DBus-based notifications for Linux and BSD desktops (@bpereto)
- Add module name to logging output (@bpereto)
2019-01-13 09:51:35 +08:00
Manu a2e9bf2886 Add own macOS Keychain implementation to avoid conflict with autostart. #81 2018-12-06 17:41:22 +08:00