From 362964de799f4e7ced9da584ce917b59dbc01b42 Mon Sep 17 00:00:00 2001 From: mingrammer Date: Sat, 6 Jun 2020 14:35:31 +0900 Subject: [PATCH] ci: add run test job --- .github/workflows/test.yml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..d4c97ed --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,31 @@ +name: Run tests + +on: + push: + branches: + - master + paths: + - '**.py' + pull_request: + branches: + - master + paths: + - '**.py' + +jobs: + test: + strategy: + matrix: + python: ['3.6', '3.7', '3.8'] + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v1 + - uses: actions/setup-python@v1 + with: + python-version: ${{ matrix.python }} + - name: Install poetry + run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python + - name: Install libraries + run: poetry install + - name: Run all tests + run: python -m unittest -v tests/*.py