Skip to content

Using robotidy on CI #675

Closed Answered by bhirsz
higor-haider asked this question in Q&A
Apr 3, 2024 · 2 comments · 2 replies
Discussion options

You must be logged in to vote

Example pipeline:

stages:
  - formatting
 
robotidy:
  stage: formatting
  image: python:3.12
  before_script:
    - pip install robotframework-tidy
  script:
    - robotidy --check .
  only:
    - merge_requests

I didn't test it - if it works, mention it here so I can add it to our documentation as example.

And Robotidy by default looks for configuration file in the project root, that's why we don't need to provide path to config file. "pip install robotframework-tidy" will also install most recent robotframework version (if nothing was installed before). If you wish to use specific version of robot framework then specify the version:

pip install robotframework==6.1.1 robotframework-tidy

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
2 replies
@higor-haider
Comment options

@bhirsz
Comment options

Answer selected by higor-haider
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants