aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* sr.ht ci: add some pytest optionsOskari Pirhonen2023-11-111-0/+9
| | | | | | | | | At the time of writing, sourcehut VM's have 2 cores. Utilizing pytest-xdist unsurprisingly cuts the time in half :) Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com> Closes: https://github.com/gentoo/portage/pull/1175 Signed-off-by: Sam James <sam@gentoo.org>
* sr.ht ci: install into --destdirOskari Pirhonen2023-11-111-1/+1
| | | | | | | | Avoids failed privilege escalation from trying to install into /usr/local. Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* sr.ht ci: install some missing packagesOskari Pirhonen2023-11-112-2/+4
| | | | | | | | | | | - pkg-config - libpython - pytest-xdist - with psutil to auto-detect logical cores Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* sr.ht ci: small housekeepingOskari Pirhonen2023-11-111-4/+12
| | | | | | | | | | | - use venvs again - use a separate native .ini for each python version - move meson setup into setup-tests - add (commented out) python 3.12 - print total elapsed test time for portage test suite Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* Drop custom test runner bits in favour of pytestJames Le Cuirot2023-08-021-1/+1
| | | | | Signed-off-by: James Le Cuirot <chewi@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* Migrate from setuptools to Meson and meson-pythonJames Le Cuirot2023-08-022-23/+9
| | | | | | | | | | | This makes Portage PEP 517 compliant. When building via meson-python, the man pages and logrotate config are no longer included as there seems little point. Bug: https://bugs.gentoo.org/910035 Signed-off-by: James Le Cuirot <chewi@gentoo.org> Signed-off-by: Sam James <sam@gentoo.org>
* sr.ht ci: install pytestOskari Pirhonen2023-07-091-0/+7
| | | | | | | | | Ensure pytest exists on sourcehut builds before running Portage test suite. Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com> Closes: https://github.com/gentoo/portage/pull/1064 Signed-off-by: Sam James <sam@gentoo.org>
* tests: pre-commit: add pytest dep to pylintDavid Palao2023-05-261-1/+1
| | | | | | Signed-off-by: David Palao <david.palao@gmail.com> Closes: https://github.com/gentoo/portage/pull/1047 Signed-off-by: Sam James <sam@gentoo.org>
* ci: run the portage tests on sourcehutOskari Pirhonen2023-04-071-0/+39
| | | | | | | | | | Run the Portage test suite for each Python version given in PYTHON_VERSIONS in the sourcehut build manifest. Currently skips PyPy tests, see bug #903709 Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* ci: add basic pypy support to setup-python.shOskari Pirhonen2023-04-071-8/+15
| | | | | | | | | Install pypy by specifying 'pypy3' in the PYTHON_VERSIONS. ... and fix indents and ensure system python has venv module Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* ci: run pylint on sourcehutOskari Pirhonen2023-04-071-1/+17
| | | | | | | | Run the pylint portion of the lint tasks (for each version given in PYTHON_VERSIONS) on sourcehut builds. Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* ci: NIH actions/setup-python for sourcehutOskari Pirhonen2023-04-072-6/+40
| | | | | | | | | | Use the deadsnakes PPA and PYTHON_VERSIONS env var to control which version of python get installed. Use a separate setup-python script in .builds/ to avoid duplicate code. And having to remember to update it in more than one place for changes. Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>
* ci: run black on sourcehutOskari Pirhonen2023-04-071-0/+20
Runs the black portion of the lint tasks on sourcehut builds. Signed-off-by: Oskari Pirhonen <xxc3ncoredxx@gmail.com> Signed-off-by: Sam James <sam@gentoo.org>