Spaces:
Running
Running
Vikramjeet Singh
commited on
Commit
•
203b413
1
Parent(s):
2b60b6a
CircleCI Commit
Browse filesFormer-commit-id: 0fbc40a9bd17506699aa8ab07cf0c32291ced6a2
- .circleci/config.yml +34 -0
.circleci/config.yml
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
# This config was automatically generated from your source code
|
2 |
+
# Stacks detected: deps:python:.
|
3 |
+
version: 2.1
|
4 |
+
orbs:
|
5 |
+
python: circleci/python@2
|
6 |
+
jobs:
|
7 |
+
test-python:
|
8 |
+
# Install dependencies and run tests
|
9 |
+
docker:
|
10 |
+
- image: cimg/python:3.8-node
|
11 |
+
steps:
|
12 |
+
- checkout
|
13 |
+
- python/install-packages
|
14 |
+
- run:
|
15 |
+
name: Run tests
|
16 |
+
command: pytest --junitxml=junit.xml || ((($? == 5)) && echo 'Did not find any tests to run.')
|
17 |
+
- store_test_results:
|
18 |
+
path: junit.xml
|
19 |
+
deploy:
|
20 |
+
# This is an example deploy job, not actually used by the workflow
|
21 |
+
docker:
|
22 |
+
- image: cimg/base:stable
|
23 |
+
steps:
|
24 |
+
# Replace this with steps to deploy to users
|
25 |
+
- run:
|
26 |
+
name: deploy
|
27 |
+
command: '#e.g. ./deploy.sh'
|
28 |
+
workflows:
|
29 |
+
build-and-test:
|
30 |
+
jobs:
|
31 |
+
- test-python
|
32 |
+
# - deploy:
|
33 |
+
# requires:
|
34 |
+
# - test-python
|