Bird
0
0

Which file is commonly used to define a GitHub Actions workflow for a Flask project?

easy📝 Conceptual Q2 of 15
Flask - Deployment
Which file is commonly used to define a GitHub Actions workflow for a Flask project?
A.github/workflows/main.yml
Bflask_app.py
Crequirements.txt
DDockerfile
Step-by-Step Solution
Solution:
  1. Step 1: Identify GitHub Actions workflow file location

    GitHub Actions workflows are YAML files stored in .github/workflows/ directory.
  2. Step 2: Match correct filename for Flask project

    The common filename is main.yml or any .yml inside .github/workflows/.
  3. Final Answer:

    .github/workflows/main.yml -> Option A
  4. Quick Check:

    Workflow file = .github/workflows/main.yml [OK]
Quick Trick: GitHub Actions workflows live in .github/workflows/ [OK]
Common Mistakes:
MISTAKES
  • Confusing app code files with workflow files
  • Using requirements.txt as workflow
  • Thinking Dockerfile defines GitHub Actions

Want More Practice?

15+ quiz questions · All difficulty levels · Free

Free Signup - Practice All Questions
More Flask Quizzes