diff --git a/.github/workflows/test_for_python_test_example.yml b/.github/workflows/test_for_python_test_example.yml new file mode 100644 index 0000000..7aa48ab --- /dev/null +++ b/.github/workflows/test_for_python_test_example.yml @@ -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" diff --git a/README.md b/README.md index ad00d5d..4920dee 100644 --- a/README.md +++ b/README.md @@ -8,3 +8,7 @@ Qiitaに投稿した記事に関係するコードを上げるレポジトリ - モザイク図とヒートマップを合わせた図を作成する - mosaic_heatmap - https://qiita.com/suaaa7/items/9806bf6205fd084b82b0 + +- Pythonのunittestを最低限扱えるようになる + - python_test_example + - https://qiita.com/suaaa7/items/5008d5f530023b536b17