Skip to content

Add CI for python_test_example #8

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Aug 10, 2020
Merged
Show file tree
Hide file tree
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
22 changes: 22 additions & 0 deletions .github/workflows/test_for_python_test_example.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Test for python_test_example
on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-18.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python 3.7
uses: actions/setup-python@v2
with:
python-version: '3.7'
architecture: 'x64'
- name: Install Library
run: |
python3 -m pip install --upgrade pip
pip install requests flask
- name: Run unittest
run: |
cd python_test_example
python3 -m unittest discover --verbose --pattern "*_test.py"
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,7 @@ Qiitaに投稿した記事に関係するコードを上げるレポジトリ
- モザイク図とヒートマップを合わせた図を作成する
- mosaic_heatmap
- https://qiita.com/suaaa7/items/9806bf6205fd084b82b0

- Pythonのunittestを最低限扱えるようになる
- python_test_example
- https://qiita.com/suaaa7/items/5008d5f530023b536b17