Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Polygon Query on Raster
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Package Registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
FACT
FACT Utils
Polygon Query on Raster
Commits
b4756d1e
Commit
b4756d1e
authored
5 months ago
by
Riccardo Boero
Browse files
Options
Downloads
Patches
Plain Diff
Added testing to CI/CD
parent
932d52cb
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#2002
failed
5 months ago
Stage: test
Stage: build
Stage: deploy
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
.gitlab-ci.yml
+16
-2
16 additions, 2 deletions
.gitlab-ci.yml
with
16 additions
and
2 deletions
.gitlab-ci.yml
+
16
−
2
View file @
b4756d1e
image
:
python:latest
image
:
python:latest
stages
:
stages
:
-
test
-
build
-
build
-
deploy
-
deploy
# Test stage
run_tests
:
stage
:
test
script
:
-
pip install -r requirements.txt
# Install dependencies, including test dependencies
-
pip install pytest
# Install pytest (it is not n requirements.txt)
-
pytest
# Run the tests in the 'tests' directory
artifacts
:
paths
:
-
tests/test-reports.xml
only
:
-
main
build_docs
:
build_docs
:
stage
:
build
stage
:
build
script
:
script
:
...
@@ -14,7 +28,7 @@ build_docs:
...
@@ -14,7 +28,7 @@ build_docs:
paths
:
paths
:
-
docs/build/html
-
docs/build/html
only
:
only
:
-
main
# Adjust as necessary for your branch strategy
-
main
pages
:
pages
:
stage
:
deploy
stage
:
deploy
...
@@ -24,4 +38,4 @@ pages:
...
@@ -24,4 +38,4 @@ pages:
paths
:
paths
:
-
public
-
public
only
:
only
:
-
main
# Ensure this matches the branch you use for deployment
-
main
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment