1
0
Fork 0
mirror of https://github.com/borgbase/vorta synced 2024-12-22 07:43:09 +00:00
Commit graph

8 commits

Author SHA1 Message Date
Manu
0e8432602d
Remove pkg_resources use (#2098) 2024-10-20 14:04:25 +01:00
Manu
e631cc45b2
Bump Borg version for integration test (#2097) 2024-10-18 15:54:41 +01:00
Manu
cf4370aa33
Fix macOS tests (#2095) 2024-10-18 15:17:34 +01:00
Sam
0fb76b68ca
Use Ruff for linting and formatting. By @SAMAD101 (#1980) 2024-10-18 12:08:59 +01:00
Shivansh Singh
d0a996c1ca
Schedule tab refactoring. By @shivansh02 (#2035) 2024-07-19 15:21:58 +01:00
Ted Lawson
ee71bcae9a
DRY tests, increase coverage. By @bigtedde (#1769) 2023-08-17 11:05:52 +01:00
Divyansh Singh
30c572250f
Inline archive renaming. By @diivi (#1734) 2023-08-15 12:38: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