Skip to content

Commit 0555a67

Browse files
Henry Chanhenrylamchan
Henry Chan
authored andcommitted
SemaphoreCI + CodeCov
1 parent 575873c commit 0555a67

File tree

3 files changed

+42
-0
lines changed

3 files changed

+42
-0
lines changed

.semaphore/semaphore.yml

+34
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
version: v1.0
2+
name: Python
3+
agent:
4+
machine:
5+
type: e1-standard-2
6+
os_image: ubuntu1804
7+
blocks:
8+
- task:
9+
secrets:
10+
- name: codecov-workos-python
11+
prologue:
12+
commands:
13+
- checkout
14+
- sem-version python 2.7
15+
- python -m pip install --upgrade pip
16+
- pip install flake8 pytest
17+
- sem-version python 3.7
18+
- python -m pip install --upgrade pip
19+
- pip install flake8 pytest pytest-cov
20+
jobs:
21+
- name: python
22+
commands:
23+
- sem-version python 2.7
24+
- flake8 . --count --select=E9,F7,F82 --show-source --statistics
25+
- flake8 . --count --exit-zero --max-complexity=10 --statistics
26+
- pytest
27+
# Coverage would be the same regardless of Python version
28+
- name: python3 + codecov
29+
commands:
30+
- sem-version python 3.7
31+
- flake8 . --count --select=E9,F7,F82 --show-source --statistics
32+
- flake8 . --count --exit-zero --max-complexity=10 --statistics
33+
- pytest --cov-report xml --cov=workos
34+
- bash <(curl -s https://codecov.io/bash)

codecov.yml

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
coverage:
2+
status:
3+
project:
4+
default:
5+
only_pulls: true
6+
threshold: 5

workos/tests/test_placeholder.py

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
def test_placeholder():
2+
pass

0 commit comments

Comments
 (0)