Skip to content

Commit 7ece0ef

Browse files
authored
Merge pull request #8 from suaaa7/python_test_example
Add CI for python_test_example
2 parents 890cdb9 + dcc5d92 commit 7ece0ef

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
name: Test for python_test_example
2+
on: [push, pull_request]
3+
4+
jobs:
5+
build:
6+
runs-on: ubuntu-18.04
7+
steps:
8+
- name: Checkout
9+
uses: actions/checkout@v2
10+
- name: Set up Python 3.7
11+
uses: actions/setup-python@v2
12+
with:
13+
python-version: '3.7'
14+
architecture: 'x64'
15+
- name: Install Library
16+
run: |
17+
python3 -m pip install --upgrade pip
18+
pip install requests flask
19+
- name: Run unittest
20+
run: |
21+
cd python_test_example
22+
python3 -m unittest discover --verbose --pattern "*_test.py"

README.md

+4
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ Qiitaに投稿した記事に関係するコードを上げるレポジトリ
88
- モザイク図とヒートマップを合わせた図を作成する
99
- mosaic_heatmap
1010
- https://qiita.com/suaaa7/items/9806bf6205fd084b82b0
11+
12+
- Pythonのunittestを最低限扱えるようになる
13+
- python_test_example
14+
- https://qiita.com/suaaa7/items/5008d5f530023b536b17

0 commit comments

Comments
 (0)