Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
51 changes: 30 additions & 21 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,36 +3,45 @@ version: 2.1
jobs:
example_job:
docker:
- image: circleci/python:3.8
- image: cimg/python:3.11.12
steps:
- checkout
- run: python3 --version
- run: ls
other_job:
docker:
- image: cimg/python:3.11.11
steps:
- checkout
- run: python3 --version

# Your main steps here
- run:
name: Run Tests
command: |
# Simulate test execution
pytest tests/ || echo "Tests failed"
# # Your main steps here
# - run:
# name: Run Tests
# command: |
# # Simulate test execution
# pytest tests/ || echo "Tests failed"


# Always persist to workspace, even if the previous step fails
- run:
name: Persist Workspace
command: |
echo "Persisting workspace..."
# You can add any commands needed to prepare your workspace here
- run:
name: Upload CodeCov.io Data
command: bash <(curl -s https://codecov.io/bash) -F unittests
when: always # Uploads code coverage results, pass or fail
# # Always persist to workspace, even if the previous step fails
# - run:
# name: Persist Workspace
# command: |
# echo "Persisting workspace..."
# # You can add any commands needed to prepare your workspace here
# - run:
# name: Upload CodeCov.io Data
# command: bash <(curl -s https://codecov.io/bash) -F unittests
# when: always # Uploads code coverage results, pass or fail

- persist_to_workspace:
root: /home/circleci/project
paths:
- path/to/persist
# - persist_to_workspace:
# root: /home/circleci/project
# paths:
# - path/to/persist

workflows:
version: 2
build:
jobs:
- example_job
- other_job