Commit Graph
28 Commits
Author SHA1 Message Date
Matthieu Darbois ae2451a199 chore(ci): speed-up tests (#1752)
* chore(ci): speed-up tests

* back to 2 processes on Azure macOS
2024-02-29 16:27:09 -05:00
mayeut 6d27f05c7c chore: use from __future__ import annotations 2022-07-19 07:47:45 +02:00
Joe Rickerby f69fa19d07 Run podman tests only on linux 2022-06-29 20:18:08 +01:00
Joe Rickerby f23d8aaae5 Add an integration test for a podman build 2022-06-27 19:08:46 +01:00
Matthieu DarboisandJoe Rickerby ab13f7a9de feature: allow local runs on windows/macOS (#974)
* feature: allow local runs on windows/macOS

Cache python installations to a user cache folder using platformdirs.
The build environment is now a virtual environment to allow proper isolation.
Allows to run tests in parallel.

Co-authored-by: Joe Rickerby <joerick@mac.com>
2022-01-08 11:30:48 +01:00
Henry Schreiner 6ab315638a fix(types): allow inference of list type in MyPy 2021-09-20 12:52:08 -04:00
Matthieu Darbois a85a2d7ea8 feat(CI): run linux tests with pytest-xdist (#831) 2021-09-20 12:32:05 +02:00
Henry Schreiner bda76b21cb style: activate string normalization 2021-05-03 13:12:36 -04:00
Henry Schreiner 178aaea6c7 style: apply black via pre-commit run -a 2021-05-03 13:12:36 -04:00
Henry SchreinerandJoe Rickerby d2772c2293 refactor: subprocess.run (#592)
* change check_call to run

* refactor: change check_output to run

* Apply suggestions from code review

Co-authored-by: Joe Rickerby <joerick@mac.com>

Co-authored-by: Joe Rickerby <joerick@mac.com>
2021-02-14 12:56:33 -05:00
Joe Rickerby e215446283 Increase test timeout value 2021-01-05 17:40:15 +00:00
Grzegorz BokotaandYannick Jadoul 99203a83f9 fix: patching pypy venv (#502)
Potentially revert / remove on release of PyPy 7.3.4.

* patching linux and macos

* try test

* add patch files for pypy2.7

* fix installing

* Combine patch files into one

* Simplify further, and add test to remind ourselves to remove the PyPy patch

* ignore fail of patch on linux

make new test failing only on linux

* fix test

* add timeout

* fix patch on linux

* change `-N` to `--force`

Co-authored-by: Yannick Jadoul <yannick.jadoul@belgacom.net>
2020-12-31 11:50:19 -05:00
Joe Rickerby faf6a76375 Change 'slow' tests to 'docker' tests, only run them on Linux 2020-06-28 10:53:03 +01:00
Joe Rickerby c956f118f6 Add unit tests for DockerContainer 2020-06-26 21:37:02 +01:00
Yannick Jadoul acf5c24881 Use patlib.Path in tests and tools 2020-06-18 15:29:48 +02:00
Joe Rickerby 0411fcc2ae As discussed in code review 2020-05-15 12:19:38 +01:00
Joe Rickerby bf882b065d Output test timings 2020-05-03 14:18:57 +01:00
Joe Rickerby 5d665aac39 Fix up test runner scripts 2020-05-02 22:57:03 +01:00
Nicola Soranzo cab6ecef24 Fix all PEP-008 issues 2020-02-14 15:50:06 +00:00
Yannick Jadoul 165e51aec5 Remove 'from __future__ import print_function' lines 2020-02-04 11:58:52 +01:00
Joe Rickerby 3f5572e956 Make included scripts virtualenv-friendly 2019-04-23 22:17:59 +01:00
Yannick Jadoul 95d2086ced Adding check.py to tests, rather than a simple generic assert on number of wheels 2019-04-20 20:49:56 +02:00
Joe Rickerby 0cd8228db1 Use same python interpreter for running pytest 2017-09-07 21:59:04 +01:00
Yannick Jadoul 93d2a593c4 Making call from run_tests to run_test subprocess.check_call 2017-09-06 16:14:39 +02:00
Yannick Jadoul 3188c978c9 Fixing 'ValueError: Attempted relative import in non-package' 2017-09-06 15:46:31 +02:00
Yannick Jadoul a7c7a58407 Reducing code duplication in bin/run_test.py and bin/run_tests.py 2017-09-06 15:07:58 +02:00
Joe Rickerby 9091533fcc Run the unit tests in CI 2017-09-01 13:32:34 +01:00
Joe Rickerby 38f89e955f Added test for environment and a script for local running 2017-07-24 22:39:16 +01:00