Skip to content

Commit ffe8be0

Browse files
authored
add github workflow (#3)
1 parent 76aa93a commit ffe8be0

File tree

4 files changed

+47
-48
lines changed

4 files changed

+47
-48
lines changed

.c9build.sh

Lines changed: 0 additions & 19 deletions
This file was deleted.

.github/workflows/ci.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Build
2+
on:
3+
push:
4+
schedule:
5+
- cron: '0 1 * * 0'
6+
7+
jobs:
8+
build:
9+
runs-on: ubuntu-18.04
10+
steps:
11+
- uses: actions/setup-python@v2
12+
with:
13+
python-version: 2.7
14+
- name: Setup build tools
15+
run: |
16+
sudo apt-get install pylint
17+
- uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 50
20+
- uses: testspace-com/setup-testspace@v1
21+
with:
22+
domain: samples
23+
- name: Install
24+
run: |
25+
pip install -r requirements.txt
26+
- name: Analyze
27+
run: |
28+
pylint stock_alerter/ -f parseable > analysis.txt || true
29+
- name: Test
30+
run: |
31+
nose2 --junit-xml --with-coverage
32+
- name: Push
33+
run: |
34+
testspace analysis.txt{lint} nose2.xml{stock_alerter} coverage.xml
35+
if: always()

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,16 @@ Sample demonstrates techniques for using Testspace with Python code and the [`un
88

99
* Using a Testspace Project that is `connected` with this GitHub Repo
1010
* Using 3 Online CI services for demonstration purposes only
11-
* Can review the Results at [testspace-samples:python.unittest](https://samples.testspace.com/projects/testspace-samples:python.unittest)
12-
* Refer to our [Getting Started](https://help.testspace.com/getting-started) help articles for more information
11+
* Can review the Results at [testspace-samples:python.unittest](https://samples.testspace.com/projects/testspace-samples:python.unittest)
12+
* Refer to our [Help](https://help.testspace.com/) for more information
1313

1414

1515
***
1616
Using Multiple Online CI Services:
1717

18-
[![Build Status](https://travis-ci.org/testspace-samples/php.phpunit.svg?branch=master)](https://travis-ci.org/testspace-samples/python.unittest)
18+
![Build](https://github.com/testspace-samples/python.unittest/workflows/Build/badge.svg)
19+
[![Build Status](https://travis-ci.org/testspace-samples/python.unittest.svg?branch=master)](https://travis-ci.org/testspace-samples/python.unittest)
1920
[![CircleCI](https://circleci.com/gh/testspace-samples/python.unittest.svg?style=svg)](https://circleci.com/gh/testspace-samples/python.unittest)
20-
[![Run Status](https://api.shippable.com/projects/5a1068f96301ee07008b7aa0/badge?branch=master)](https://app.shippable.com/github/testspace-samples/python.unittest)
2121

2222

2323
***
@@ -27,12 +27,12 @@ Publishing **Test Content** using www.testspace.com.
2727
[![Space Metric](https://samples.testspace.com/spaces/757/metrics/683/badge?token=116815d4171e04500825d50efd8faae6795a50dd)](https://samples.testspace.com/spaces/757/schema/Code%20Coverage?utm_campaign=badge&utm_medium=referral&utm_source=coverage "Code Coverage (lines)")
2828
[![Space Metric](https://samples.testspace.com/spaces/757/metrics/684/badge?token=ccdfd31aa029f081c99f3b2748b7fa3714de4410)](https://samples.testspace.com/spaces/757/schema/Static%20Analysis?utm_campaign=badge&utm_medium=referral&utm_source=analysis "Static Analysis (issues)")
2929

30-
***
30+
***
3131

3232
In order to run this sample you will need a host workstation with installed python 2.6+.
3333

3434

35-
Download and configure the Testspace client
35+
Download and configure the Testspace client
3636
<pre>
3737
mkdir -p $HOME/bin
3838
curl -s https://testspace-client.s3.amazonaws.com/testspace-linux.tgz | tar -zxvf- -C $HOME/bin
@@ -47,20 +47,20 @@ sudo apt-get install pylint
4747
</pre>
4848

4949

50-
Running Static Analysis:
50+
Running Static Analysis:
5151
<pre>
5252
pylint stock_alerter/ -f parseable > analysis.txt
53-
</pre>
53+
</pre>
5454

55-
Running Tests with Code Coverage:
55+
Running Tests with Code Coverage:
5656

5757
<pre>
5858
nose2 --junit-xml --with-coverage
59-
</pre>
59+
</pre>
6060

6161
Push Content using Testspace client
6262

6363
<pre>
64-
testspace analysis.txt{lint} nose2.xml{stock_alerter} coverage.xml
65-
</pre>
64+
testspace analysis.txt{lint} nose2.xml{stock_alerter} coverage.xml
65+
</pre>
6666

shippable.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.

0 commit comments

Comments
 (0)