I've set up a pipeline to allow a user to repeat a test a specific number of times. It looks something like this:
image: python:3.11.0
definitions:
caches:
pip3: /usr/local/lib/python3.11/site-packages
steps:
- step: &setup
name: 'Install dependencies'
caches:
- pip3
script:
- python3 -m pip install --upgrade pip
- pip install -r requirements.txt
pipelines:
custom:
run_tests:
- variables:
- name: iterations
default: 1
- step: *setup
- step:
name: 'Run tests'
caches:
- pip3
script:
- |
for i in `seq 1 $iterations`;
do
python run_tests.py
done
artifacts:
- outputs/**
However, PyCharm gives me this error:
Schema validation: Property 'variables' is not allowed
I don't know if the issue is with PyCharm or something else, but there are no problems after the code, and the pipeline runs fine. Anyone know what's causing this?