Commit Graph

66 Commits

Author SHA1 Message Date
Thomas Waldmann 98796a2f0d
replace flake8 by ruff 2023-09-04 22:15:42 +02:00
Thomas Waldmann 057aec407d
ci: run on ubuntu 22.04 2023-08-26 15:11:17 +02:00
Thomas Waldmann d2d6e6092b
CI: test building the docs 2023-08-26 13:44:51 +02:00
Thomas Waldmann cab8e5d013
github actions CI: win/mac both need linux succeed first, fixes #7684
also:
- XDISTN=6, 3 cores on macOS machines
- XDISTN=4, 2 cores on windows/linux machines
2023-06-29 19:59:39 +02:00
Thomas Waldmann e9f766dbbf
gha: remove outdated borg2 branch 2023-06-28 15:27:26 +02:00
Thomas Waldmann 7092f24f4a
CI: try 4 parallel pytest-xdist workers 2023-06-06 23:22:03 +02:00
Rayyan Ansari 4f7d940769
CI: merge Windows workflow with main
This also enables us to avoid running it when lint fails.
2023-06-01 20:25:42 +01:00
Thomas Waldmann 5c24149237
ci: use a faster python on macOS
the macOS machines used for github actions are sometimes slow,
so rather try to put less burden on them.
2023-04-06 19:50:01 +02:00
Thomas Waldmann bcfbdb6e79
ci: looks like 40mins is not always enough
might depend on server load at gh.
2023-04-06 19:29:01 +02:00
Thomas Waldmann d6091c41c7
codeql action: upgrade to v2 2023-03-27 16:25:58 +02:00
Rayyan Ansari 89824bc705
Windows CI: only run when certain files are modified
The Windows CI does not need to run when files such as docs are
changed.
2023-03-12 15:35:32 +00:00
Rayyan Ansari ce50c497b0
Windows: simplify building
Use the standard pip build command, and get rid of the build script.
2023-03-10 17:51:03 +00:00
Thomas Waldmann 142eb65223
upgrade codecov-action to v3 2023-02-09 18:46:36 +01:00
Thomas Waldmann f65a6b197a
fix black versions be 23.x
https://black.readthedocs.io/en/stable/integrations/github_actions.html
2023-02-01 16:04:39 +01:00
Thomas Waldmann 96862787db
upgrade black to 23.1.0
work around the current github actions issue by just using the latest version:

https://github.com/psf/black/issues/3538
2023-02-01 12:29:54 +01:00
Thomas Waldmann 829d88e614
win32 ci: show individual tests, give skip reason if tests were skipped 2023-01-13 21:01:05 +01:00
TW 7fb37271f2
Merge pull request #7258 from RayyanAnsari/windows-ci-tests
Add tests to Windows CI
2023-01-13 18:43:21 +01:00
Rayyan Ansari b19d2c1449
Add tests to Windows CI 2023-01-13 17:02:41 +00:00
Josh Soref 6266ba8891 spelling: github
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-01-12 00:24:42 -05:00
Thomas Waldmann b1d7cb4e1e
github CI: set PKG_CONFIG_PATH again
strange: on macOS, the globally set PKG_CONFIG_PATH was overwritten,
thus the borg build did not find openssl any more. setting it here
locally again works around the issue.
2022-12-17 21:37:27 +01:00
Thomas Waldmann d959178e76
github CI: prepend to PKG_CONFIG_PATH 2022-12-17 21:35:26 +01:00
Thomas Waldmann 6041928c0a
github CI: use actions/cache@v3 2022-12-17 20:32:35 +01:00
Thomas Waldmann 626a5c9229
github CI: use actions/setup-python@v4 2022-12-17 20:31:58 +01:00
Thomas Waldmann 2f0a81617f
github CI: use actions/checkout@v3 2022-12-17 20:31:13 +01:00
Thomas Waldmann c9a879a358
github CI: use ubuntu-20.04 2022-12-17 20:30:07 +01:00
Thomas Waldmann e6424aa0f5
fix tox4 passenv issue, fixes #7199
also: have a setting to disable fail-fast, in case something breaks again.
2022-12-10 19:34:32 +01:00
Thomas Waldmann fa9381a476
use same black version on gh actions as locally 2022-11-06 17:34:59 +01:00
Rayyan Ansari 2b98a423ed
Add new Windows build scripts and CI with GitHub and MSYS2
Fixes #7097
2022-10-27 13:42:41 +01:00
Thomas Waldmann b19618506a vagrant / github CI: use python 3.11.0 2022-10-27 02:15:05 +02:00
Thomas Waldmann c3e5ff613f CI: test pyfuse3 with python 3.11 2022-09-28 02:57:20 +02:00
Thomas Waldmann ba1a26ffa5 CI: test on macOS 12 without fuse / fuse tests
too troublesome on github CI due to kernel extensions needed by macFUSE.
2022-07-27 22:31:06 +02:00
Thomas Waldmann b07aeef498 add mypy checking
also added some .pyi files needed to check the cython code (taken from #5703 and updated).

fixed "syntax error" in key.py.

all mypy complaints not fixed yet.
2022-07-15 12:49:38 +02:00
Andrey Bienkowski adb1c36215 black integration 2022-07-06 14:55:40 +02:00
Thomas Waldmann a1acc00a90 codeql: empty env section is invalid 2022-07-06 14:20:36 +02:00
Thomas Waldmann 5c8a5f111f stop using libdeflate
borg2's new repo format does not need computing crc32 over big amounts of
(content) data any more (we now use xxh64 for that).

thus, having a quick crc32 implementation via libdeflate is not important
enough any more to rectify having libdeflate as a requirement.
2022-07-04 20:33:59 +02:00
Thomas Waldmann e0c64629d1 Merge branch 'master' into borg2
strange conflicts, automated patches seemed to not have applied correctly.
also had to fix some stuff manually, tests were failing.
2022-06-23 11:25:01 +02:00
Thomas Waldmann 72994a4432 also test pull requests against borg2 branch 2022-06-14 15:40:09 +02:00
Thomas Waldmann 18a7debf75 CI: also test on python 3.11-dev 2022-06-03 10:05:04 +02:00
Thomas Waldmann 98a675f62a use crc32 from libdeflate, remove bundled crc32 code
we use zlib.crc32 (macOS) or libdeflate_crc32 (Linux and all others) now.
2022-03-13 21:39:34 +01:00
Thomas Waldmann 2cad8c925d fix codeql complaining about missing headers needed by borg
thus:
- install requirements first
- codeql init
- build borg
- codeql analyzse
2022-03-05 22:17:44 +01:00
Andrey Bienkowski aba16ba0d4 CodeQL: Use venv
A bug in pip or possibly setuptools broke editable
installs into the per-user directory
for packages that have pyproject.toml

See https://github.com/pypa/setuptools/issues/3019
2022-03-01 08:44:40 +03:00
Thomas Waldmann 64e7ccd3fc require python >= 3.9, fixes #6315 2022-02-27 18:46:30 +01:00
Thomas Waldmann 606ba08587 fix ci: we need xxhash system lib on macOS
also: we do not need libb2 (directly) any more, this is provided indirectly via python3 now
2022-02-26 22:40:16 +01:00
Thomas Waldmann 64e02887c0 fix codeql: borg needs required libs/headers now
nothing bundled any more.
2022-02-26 22:35:47 +01:00
Andrey Bienkowski 55d5223338
s/apt/apt-get/
> WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
2022-02-25 05:24:00 +00:00
TW 757f757cc1
codeql analysis (#6148)
codeql analysis: fixes and cosmetics
2022-01-22 15:00:45 +01:00
TW 69337fca61
add codeql analysis 2022-01-22 13:50:27 +01:00
Thomas Waldmann e0af9d8ee7 CI: macOS: re-enable fuse2 testing, work around #6099
Downgrade to macOS 10.15 as macOS 11.x breaks fuse2 testing.

On macOS 10.15, osxfuse and also macfuse works with borg's fuse2 tests.

Upgrading to macOS 11.x based github CI breaks the tests, see #6099,
even when using the more recent macfuse to provide fuse2 capability.
2022-01-16 18:36:29 +01:00
TW aec98e48ec
Merge pull request #6116 from ThomasWaldmann/upgrade-py-master
upgrade pythons (master)
2022-01-07 14:21:32 +01:00
Thomas Waldmann 530acb68be github ci: use 3.10 (without -dev) 2022-01-06 23:33:45 +01:00