From d89f8b87568d30d467279d96b0100cd318e2b5a2 Mon Sep 17 00:00:00 2001 From: appel_c Date: Tue, 7 May 2024 15:20:48 +0200 Subject: [PATCH] ci: fix dep and add CI JOB for package dep checks --- .gitlab-ci.yml | 9 +++++++-- pyproject.toml | 10 +++++----- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index f56988e..793f3f9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -28,8 +28,13 @@ workflow: include: - template: Security/Secret-Detection.gitlab-ci.yml - # - project: "bec/awi_utils" - # file: "awi_utils/test_pkg_versions/.gitlab-ci-job-check-pkg.yml" + - project: "bec/awi_utils" + file: "/templates/check-packages-job.yml" + inputs: + stage: test + path: "." + pytest_args: "-v --random-order tests/" + exclude_packages: "" #commands to run in the Docker container before starting each job. before_script: diff --git a/pyproject.toml b/pyproject.toml index f0700b3..5168643 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -14,9 +14,9 @@ classifiers = [ ] dependencies = [ "ophyd ~= 1.9", - "typeguard ~= 4.0", + "typeguard ~= 4.1, >=4.1.4", "prettytable ~= 3.9", - "bec_lib ~= 2.0", + "bec_lib ~= 2.8", "numpy ~= 1.24", "pyyaml ~= 6.0", "std_daq_client ~= 1.3", @@ -30,10 +30,10 @@ dependencies = [ dev = [ "bec-server~=2.7", "black~=24.0", - "isort~=5.0", - "coverage~=7.4", + "isort~=5.13, >=5.13.2", + "coverage~=7.0", "pylint~=3.0", - "pytest-random-order~=1.0", + "pytest-random-order~=1.1", ] [project.scripts]