Quantcast
Channel: Active questions tagged config - Stack Overflow
Viewing all articles
Browse latest Browse all 5049

Circleci does not work with my config.yml file when trying to run 'pytest --html=pytest_report.html', producing the error 'no such option: --html'

$
0
0

What I tried:placing 'pip install --user -r requirements.txt' in the second run commandplacing 'pip install pytest' in the second run command along with 'pip install pytest-html'

both followed by,pytest --html=pytest_report.html

I am new to CircleCI and using pytest as wellHere is the steps portion of the config.yml file

version: 2.1jobs:  run_tests:    docker:      - image: circleci/python:3.9.1    steps:      - checkout      - run:        name: Install Python Dependencies        command:          echo 'export PATH=~$PATH:~/.local/bin'>> $BASH_ENV && source $BASH_ENV          pip install --user -r requirements.txt      - run:        name: Run Unit Tests        command:          pip install --user -r requirements.txt          pytest --html=pytest_report.html      - store_test_results:          path: test-reports      - store_artifacts:          path: test-reportsworkflows:  build_test:    jobs:      - run_tests

Viewing all articles
Browse latest Browse all 5049

Trending Articles