I’m trying to run a pytest through a pipeline, and then run a few commands afterwards.
problem is that after the pytest run fails, the pipeline stops and exits, so i cannot perform command such as upload artifact of test report.
im using the shared gitlab runner
these are the logs of the job, as u see the test fails and then immediatly exits, the command ‘ls’ is not executed.
stages: - install_package pytest: stage: install_package allow_failure: true before_script: - sudo apt-get update && sudo apt-get install python3.8-distutils -y - sudo wget https://bootstrap.pypa.io/get-pip.py - sudo python3 get-pip.py - sudo pip3 install virtualenv - sudo python3 -m virtualenv venv - source venv/bin/activate - sudo python3 -m pip install --upgrade pip - sudo pip3 install -r requirements.txt - sudo pip3 install dcentralab-qa-infra-automation==1.2.1 - sudo pip3 install pytest script: - cd tests - sudo python3 -m pytest -v --html=report.html - ls artifacts: paths: - tests/report.html - report.html