Try to execute the script in a linter:
.gitlab-ci.yml:
image: ubuntu
hello-test:
script:
- apt-get update && apt-get install -y pylint3
- pylint3 helloworld.py
Or execute it in an interpreter directly:
.gitlab-ci.yml:
image: ubuntu
hello-test:
script:
- apt-get update && apt-get install -y python3
- python3 helloworld.py
Answer from Jan Christoph Terasa on Stack Overflow Top answer 1 of 2
4
Try to execute the script in a linter:
.gitlab-ci.yml:
image: ubuntu
hello-test:
script:
- apt-get update && apt-get install -y pylint3
- pylint3 helloworld.py
Or execute it in an interpreter directly:
.gitlab-ci.yml:
image: ubuntu
hello-test:
script:
- apt-get update && apt-get install -y python3
- python3 helloworld.py
2 of 2
1
Try to use following codes:
stages:
- build
PythonBuild:
stage: build
script:
- python helloworld.py
BTW, if you want to check all python files, you can add a shell script to help you do this.
bash.sh
#! bin/sh
for n in `find . -name "*.py"`
do
python $n
done
then edit .gitlab-ci.yml as following:
stages:
- build
PythonBuild:
stage: build
script:
- bash build.sh
: remeber to push build.bash to root path of your gitlab repository with .gitlab-ci.yml.
ShellHacks
shellhacks.com › home › gitlab ci/cd: “hello world” – example
GitLab CI/CD: "Hello World" - Example - ShellHacks
January 6, 2022 - $ mkdir gitlab-ci-cd-hello-world $ cd gitlab-ci-cd-hello-world $ git init $ touch .gitignore README.md $ git add -A $ git commit -m 'Initial commit' # for Git over HTTPS $ git push --set-upstream https://gitlab.com/<username>/gitlab-ci-cd-hello-world.git $ git remote add origin https://gitlab.com/<username>/gitlab-ci-cd-hello-world.git # for Git over SSH $ git push --set-upstream git@gitlab.com/<username>/gitlab-ci-cd-hello-world.git $ git remote add origin git@gitlab.com/<username>/gitlab-ci-cd-hello-world.git · GitLab CI/CD pipelines are configured using a YAML file called .gitlab-ci.yml.
11:05
Create a Release using .gitlab-ci.yml Part 1 - YouTube
22:10
GitLab Beginner Tutorial 7 | GitLab CI/CD Getting Started - YouTube
07:40
Gitlab CI pipeline tutorial for beginners - YouTube
11:19
Demo: CI/CD with GitLab - YouTube
02:27:04
GitLab CI/CD Masterclass for Beginners (2026 Edition) - YouTube
GitLab CI/CD Pipeline Tutorial for Beginners - YouTube
GitLab
docs.gitlab.com › gitlab docs › use gitlab › use ci/cd to build your application › tutorials › tutorial: your first pipeline
Tutorial: Create and run your first GitLab CI/CD pipeline | GitLab Docs
For the Filename, type .gitlab-ci.yml and in the larger window, paste this sample code: build-job: stage: build script: - echo "Hello, $GITLAB_USER_LOGIN!" test-job1: stage: test script: - echo "This job tests something" test-job2: stage: test script: - echo "This job tests something, but takes ...
SaltyCrane
saltycrane.com › blog › 2021 › 03 › gitlab-cicd-hello-world-examples
GitLab CI/CD hello world examples - SaltyCrane Blog
git commit -m 'first commit' git push --set-upstream [email protected]:saltycrane/gitlab-ci-cd-docker-hello-world.git --all git remote add origin [email protected]:saltycrane/gitlab-ci-cd-docker-hello-world.git ... variables: DOCKER_TLS_CERTDIR: "/certs" build-docker: image: docker:latest services: - docker:dind script: - docker build -t hello . ... see the pipeline run (replace saltycrane with your username): https://gitlab.com/saltycrane/gitlab-ci-cd-docker-hello-world/-/pipelines
GitHub
hsf-training.github.io › hsf-training-cicd › 06-hello-world-ci › index.html
Hello CI World – Continuous Integration / Continuous Development (CI/CD)
September 4, 2025 - The first thing we’ll do is create a .gitlab-ci.yml file in the project. cd virtual-pipelines-eventselection/ echo "hello world" >> .gitlab-ci.yml git checkout -b feature/add-ci git add .gitlab-ci.yml git commit -m "my first ci/cd" git push -u origin feature/add-ci
Cern
atlassoftwaredocs.web.cern.ch › ASWTutorial › softwareEssentials › ci_helloworld
Basic Software Essentials | GitLab CI Hello World
November 10, 2020 - On your repository page on GitLab ... for more details about your CI jobs. As stated before, hello world in the YAML here is the name of the job and what follows script is what the GitLab CI runner will try to run....
GitHub
github.com › Govinda-Fichtner › gitlab-hello-world
GitHub - Govinda-Fichtner/gitlab-hello-world: Simple example for Gitlab CI pipeline project
Simple example for Gitlab CI pipeline project. Contribute to Govinda-Fichtner/gitlab-hello-world development by creating an account on GitHub.
Starred by 2 users
Forked by 16 users
Languages: Python 100.0% | Python 100.0%
GitHub
github.com › jelastic › helloworld › blob › master › .gitlab-ci.yml
helloworld/.gitlab-ci.yml at master · jelastic/helloworld
- if [ $res -eq 0 ]; then echo "{\"env\":{\"shortdomain\":\"$ENV_NAME\"}, \"nodes\":[{\"nodeType\":\"docker\",\"nodeGroup\":\"cp\",\"extip\":false,\"count\":1,\"fixedCloudlets\":1,\"flexibleCloudlets\":16,\"docker\":{\"image\":\"${CI_PROJECT_PATH}\",\"registry\":{\"url\":\"${CI_REGISTRY}\",\"user\":\"${CI_REGISTRY_USER}\",\"password\":\"${CI_REGISTRY_PASSWORD}\"}}}]}" > params.json; cat params.json; ~/jelastic/environment/control/createenvironment --silent true --myparams params.json; fi;
Author: jelastic
GitLab
docs.gitlab.com › gitlab docs › use gitlab › use ci/cd to build your application › ci/cd yaml syntax reference
CI/CD YAML syntax reference | GitLab Docs
include: - remote: 'https://gitlab.com/example-project/-/raw/main/.gitlab-ci.yml' integrity: 'sha256-L3/GAoKaw0Arw6hDCKeKQlV1QPEgHYxGBHsH4zG1IY8='
Cern
atlas-software.docs.cern.ch › analysis › analysis_tutorial › softwareEssentials › ci_helloworld
GitLab CI - Hello World - ATLAS Software Documentation
On your repository page on GitLab ... for more details about your CI jobs. As stated before, hello world in the YAML here is the name of the job and what follows script is what the GitLab CI runner will try to run....
Medium
medium.com › @ankiit › machine-learning-ops-for-data-scientists-hands-on-ci-cd-ed3e8a0432e9
HelloWorld CICD on Gitlab. Learn how to use and build a simple… | by Ankiit | Medium
March 23, 2024 - We will execute all commands for running the test, build and deploy (highly simplified!) of our sample application ‘flattened out’ and manually. Once we have executed all the steps successfully, we will take these commands and refactor them into the gitlab-ci.yml file to build an automated pipeline that runs on Gitlab.
GitLab
docs.gitlab.com › gitlab docs › use gitlab › use ci/cd to build your application › ci/cd yaml syntax reference › functions
GitLab Functions | GitLab Docs
ubuntu_job: image: ubuntu:24.04 run: - name: install_certs script: apt update && apt install --assume-yes --no-install-recommends ca-certificates - name: echo_step func: registry.gitlab.com/user/my_functions/hello_world:1.0.0
Stack Overflow
stackoverflow.com › questions › 57758783 › how-do-i-print-hello-world-using-gitlab-ci-yml-file
c - How do i print Hello World using Gitlab CI .yml file - Stack Overflow
I am trying to print Hello World using message C language from gitlab ci. But I am not getting the message my pipeline builds successfully. Below is the .yml code: image: gcc build: stage: b...
Kratsg
kratsg.github.io › 2019-08-19-usatlas-computing-bootcamp › 07-hello-world-ci › index.html
Hello CI World – Continuous Integration / Continuous Development (CI/CD)
August 22, 2019 - > cd cmake-repository/ > touch .gitlab-ci.yml > git checkout -b feature/add-ci > git add .gitlab-ci.yml > git commit -m "my first ci/cd" > git push -u origin feature/add-ci