Code indexing in gitaly is broken and leads to code not being visible to the user. We work on the issue with highest priority.

Skip to content
Snippets Groups Projects

Draft: feat: add package tests to for night runs to test min, latest and random dep. packages

Closed appel_c requested to merge feat/run_ci_against_various_packages_nox into main
Files
2
+ 15
7
@@ -19,7 +19,6 @@ workflow:
include:
- template: Security/Secret-Detection.gitlab-ci.yml
#commands to run in the Docker container before starting each job.
before_script:
- pip install -e .[dev]
@@ -37,7 +36,7 @@ stages:
formatter:
stage: Formatter
before_script:
- ''
- ""
script:
- pip install black isort
- pip install -e .[dev]
@@ -69,10 +68,10 @@ pylint-check:
script:
# Identify changed Python files
- if [ "$CI_PIPELINE_SOURCE" == "merge_request_event" ]; then
TARGET_BRANCH_COMMIT_SHA=$(git rev-parse $CI_MERGE_REQUEST_TARGET_BRANCH_NAME);
CHANGED_FILES=$(git diff --name-only $SOURCE_BRANCH_COMMIT_SHA $TARGET_BRANCH_COMMIT_SHA | grep '\.py$' || true);
TARGET_BRANCH_COMMIT_SHA=$(git rev-parse $CI_MERGE_REQUEST_TARGET_BRANCH_NAME);
CHANGED_FILES=$(git diff --name-only $SOURCE_BRANCH_COMMIT_SHA $TARGET_BRANCH_COMMIT_SHA | grep '\.py$' || true);
else
CHANGED_FILES=$(git diff --name-only $CI_COMMIT_BEFORE_SHA $CI_COMMIT_SHA | grep '\.py$' || true);
CHANGED_FILES=$(git diff --name-only $CI_COMMIT_BEFORE_SHA $CI_COMMIT_SHA | grep '\.py$' || true);
fi
- if [ -z "$CHANGED_FILES" ]; then echo "No Python files changed."; exit 0; fi
@@ -91,7 +90,7 @@ pylint-check:
secret_detection:
before_script:
- ''
- ""
pytest:
stage: test
@@ -109,7 +108,7 @@ pytest:
path: coverage.xml
config_test:
stage: test
stage: test
script:
- ophyd_test --config ./ophyd_devices/epics/db/ --output ./config_tests
artifacts:
@@ -142,6 +141,15 @@ trigger_bec:
rules:
- if: '$CI_MERGE_REQUEST_TARGET_BRANCH_NAME == "main"'
night_tests:
stage: AdditionalTests
script:
- pip install pip-tools
- pip install nox
- nox
rules:
- if: '$TEST_PACKAGES == "1"'
semver:
stage: Deploy
needs: ["pytest"]
Loading