Commit Graph

78 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
Sam 0e37e1cf90
Correct homebrew path on arm macOS. By @sammcj (#1760) 2023-07-30 21:22:28 +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 ef297bbf4b
Avoid autostart warning when autostart disabled (#1549) 2023-01-20 12:25:58 +01:00
Julian Hofer 648c916adb Update flatpak install rule
- Add the necessary flag `--no-build-isolation`
- Use `FLATPAK_DEST` instead of hardcoding `/app`
- Rename FLATPAK_XML to APPSTREAM_METADATA
2022-11-08 12:31:23 +01:00
Manu c3db61d74a Update translations 2022-11-04 10:23:23 +01:00
yfprojects efe710540a
Determine source files for translations dynamically. By @real-yfprojects (#1309) 2022-05-22 08:02:19 +04:00
Manu 2d85641d55
Update translations, ensure new store module is included (#1139) 2021-12-17 19:56:37 +04: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 1599f3adb0
Set icon through code (#676) 2020-10-02 22:57:18 +02:00
Manu 2f47c388ce
Keep version number in one place only. Clean up Makefile vars (#642) 2020-09-10 13:26:38 +08:00
Manu 1d65d0cba5
Use naked en locale instead of en_US. Fixes #623 (#626) 2020-09-08 08:22:26 +08:00
Manu fcb11b4830 Bump version 2020-09-06 14:45:41 +08:00
Manu 10c9b9acc1
Newer macOS deploy target for detecting dark mode. Fixes #575 2020-08-13 15:42:50 +08:00
Hofer Julian 6c7e3385cb
Add correct icon for notifications on Linux. By @Hofer-Julian 2020-08-11 11:51:14 +08:00
Manu 920c4332f3
Adjust icon color to work on light and dark background. Fixes #489 2020-06-22 16:37:19 +08:00
Manu 79ef4717d7
Proper dark style support and removal of style hacks (#475)
* Remove qtdarkstyle and custom fusion style.
* Support instant changes from light to dark style
* Adjust SVG icon colors on-the-fly, adjust to dark theme in real time (macOS)
* Add OS-independent dark mode detection. Fix QToolbox style after theme changes.
* Remove some unnecessary style options, like `uses_light_icon` and `use_dark_style`.
2020-05-31 19:29:26 +08:00
Manu edaed7b1cc Release script fix 2020-05-26 12:01:22 +08:00
Manu 0b44d00f47 Bump version 2020-05-26 11:30:06 +08:00
Manu 4c0c2450bd Bump version 2020-05-26 11:09:20 +08:00
Manu facfbf29f4 Bump version to 0.6.24 2020-03-03 13:29:20 +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
Julian Hofer 95a9744d1e Improve flatpak setup (#370)
* Improve flatpak workflow
Move from yaml to json in order to be supported by GNOME Builder
Update dependencies

* Simplify Flatpak install process
Reduce the amount of commands to install the resources
by using a single svg instead of pngs
and using install instead of mdkir&cp

* Remove unused flatpak dependencies

* Update Flatpak dependencies
2019-11-04 15:31:21 +08:00
Manu 2e21fff768 Bump version 2019-10-10 13:17:37 +08:00
Manuel Riel eb2b47b4b1
Move setting prune options to right place. Fixes #339 (#342) 2019-08-21 20:54:00 +08:00
Manu 0e24bc00c2 Bump version 2019-08-03 14:13:01 +08:00
Julian Hofer 2e1703231e Include flatpak-install in Makefile
Fixes #306
2019-07-12 23:09:56 +02:00
Manu eadf51fe9e Fix to Makefile for release. 2019-06-20 20:21:43 +08:00
Manu 850274d0cd Bump version 2019-06-20 20:02:08 +08:00
Manu f7142f4eb1 Update Makefile for Flatpak releases. 2019-06-20 20:00:48 +08:00
Manuel Riel 2b612d5142
Build macOS version in Vagrant/macOS 10.13 (WIP). Fixes #273 (#290)
* Build macOS version in Vagrant/macOS 10.13 (WIP). Fixes #273

* Install Vagrant dependencies for darwin64.

* Working version of Vagrant file for macOS 10.13
2019-06-11 08:19:25 +08:00
Manu 0e25ee95d0 Bump version: 0.6.19 → 0.6.20 2019-05-16 12:20:44 +08:00
Manu 893cbc0d5c Bump version: 0.6.18 → 0.6.19 2019-04-22 15:41:53 +08:00
Manu dc9b23f911 Bump version: 0.6.17 → 0.6.18 2019-04-19 13:29:26 +08:00
Manu cfe5526a56 Bump version: 0.6.16 → 0.6.17 2019-04-14 14:48:19 +08:00
Manu 13e84775bb Bump version: 0.6.15 → 0.6.16 2019-04-07 15:53:26 +08:00
Manu 3e65f451c7 Bump version: 0.6.14 → 0.6.15 2019-03-25 23:27:57 +08:00
Manu bf12aca2fb Bump version: 0.6.13 → 0.6.14 2019-03-24 18:47:31 +08:00
Manu e40f571b5e Bump version: 0.6.12 → 0.6.13 2019-03-23 19:08:08 +08:00
Manu 59f836d84c Bump version: 0.6.11 → 0.6.12 2019-03-20 18:41:17 +08:00
Manu 77c5a22ebd Bump version: 0.6.10 → 0.6.11 2019-03-19 22:25:47 +08:00
Manuel Riel 79b538afcf
More flexible build script for fat binaries, part of #126. (#209) 2019-03-06 15:51:49 +08:00
Manu 3e836d2d95 Bump version: 0.6.9 → 0.6.10 2019-02-20 17:21:04 +08:00
Manu 0294289e8f Bump version: 0.6.8 → 0.6.9 2019-02-20 17:10:17 +08:00
Manu 1587acbad6 Bump version: 0.6.7 → 0.6.8 2019-02-08 12:45:00 +08:00
Manu 58383c5d62 Bump version: 0.6.6 → 0.6.7 2019-02-02 12:35:22 +08:00
Manu 253b579b06 Bump version: 0.6.5 → 0.6.6 2019-01-24 10:11:19 +08:00
Manuel Riel f2d9029984
Add light icons and dark stylesheet. Fixes #151 (#155) 2019-01-24 10:05:15 +08:00