Skip to content
Snippets Groups Projects
Commit b4756d1e authored by Riccardo Boero's avatar Riccardo Boero :innocent:
Browse files

Added testing to CI/CD

parent 932d52cb
No related branches found
No related tags found
No related merge requests found
Pipeline #2002 failed
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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment