Why did the job move without defining workflow in CircleCI?

Asked 2 years ago, Updated 2 years ago, 88 views

Failed to run Python tutorial on CircleCI.
If you look at the configuration file, it looks like you are running the job defined in workflow, but if you follow the tutorial, config.yaml without workflow ran on CircleCI.

If anyone knows why, please let me know.

The files are as follows:

version:2
jobs:
build:
    working_directory:~/circleci-demo-python-django
    docker:
    - image:circleci/python: 3.6.4
        environment:
        PIPENV_VENV_IN_PROJECT—true
        DATABASE_URL:postgresql://root@localhost/circle_test?sslmode=disable
    - image:circleci/postgres:9.6.2
        environment:
        POSTGRES_USER:root
        POSTGRES_DB:circle_test
    Steps:
    - check out
    - run: sudo chown-R circuitci: circuitci/usr/local/bin
    - run: sudo chown-R circuitci: circuitci/usr/local/lib/python 3.6/site-packages
    - restore_cache:
        key:deps9-{{.Branch}}-{{checksum "Pipfile.lock"}}
    - run:
        command: |
            sudo pip install pipenv
            pipenv install
    - save_cache:
        key:deps9-{{.Branch}}-{{checksum "Pipfile.lock"}}
        paths:
            - ".venv"
            - "/usr/local/bin"
            - "/usr/local/lib/python 3.6/site-packages"
    - run:
        command: |
            pipenv run "python manage.py test"
    - store_test_results:
        path —test-results
    - store_artifacts:
        path —test-results
        destination —tr1

Thank you for your cooperation.

circleci

2022-09-30 19:12

1 Answers

Workflow is not required.If necessary, you can run the job without Workflow.
Using Workflows to Schedule Jobs-CircleCI

The Workflow feature allows you to specify the order in which jobs are performed and dependencies.On the other hand, by creating a job named build, you can run it without Workflow.

If you are using Workflows, jobs must have a name that is unique with the.circleci/config.yml file.

If you are notusing workflows, the jobs map must contain a job named build.This build job is the default entry-point for a run that is triggered by a push to your VCS provider.It is possible to the session the API.

Note: Jobs have a maximum runtime of 5 hours. If your jobs are timing out, consumer running some of them in parallel.
ConfiguringCircleCI-CircleCI


2022-09-30 19:12

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.