Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
RSA_HW
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hasan.bahjat
RSA_HW
Commits
a935f6d6
Commit
a935f6d6
authored
Jan 13, 2025
by
hasan.bahjat
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add .gitlab-ci.yml
parent
9bdf80cf
Pipeline
#200
canceled with stages
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
42 additions
and
0 deletions
+42
-0
.gitlab-ci.yml
.gitlab-ci.yml
+42
-0
No files found.
.gitlab-ci.yml
0 → 100644
View file @
a935f6d6
stages
:
-
install
-
test
-
lint
variables
:
# Define Python version
PYTHON_VERSION
:
"
3.9"
# Install dependencies
install_dependencies
:
stage
:
install
image
:
python:${PYTHON_VERSION}
script
:
-
python -m venv venv
-
source venv/bin/activate
-
pip install --upgrade pip
-
pip install -r requirements.txt
artifacts
:
paths
:
-
venv/
# Run tests (using pytest, for example)
run_tests
:
stage
:
test
image
:
python:${PYTHON_VERSION}
script
:
-
source venv/bin/activate
-
pytest --maxfail=1 --disable-warnings -q
dependencies
:
-
install_dependencies
# Lint the code (using flake8, for example)
lint_code
:
stage
:
lint
image
:
python:${PYTHON_VERSION}
script
:
-
source venv/bin/activate
-
pip install flake8
-
flake8 . --max-line-length=120
dependencies
:
-
install_dependencies
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment