gitlab-ci.yml: 'script: -pytest cannot find any tests to check'
问题 I'm having trouble implementing a toy example that runs pytest within .gitlab-ci.yml gitlab_ci is a repo containing a single file test_hello.py gitlab_ci/ test_hello.py test_hello.py # test_hello.py import pytest def hello(): print("hello") def hello_test(): assert hello() == 'hello' .gitlab-ci.yml # .gitlab-ci.yml pytest: image: python:3.6 script: - apt-get update -q -y - pip install pytest - pytest # if this is removed, the job outputs 'Success' CI/CD terminal output $ pytest === test