From d675712846fe06ec783b6e918f4396d5f53dafdb Mon Sep 17 00:00:00 2001 From: klae01 Date: Fri, 26 May 2023 13:29:12 +0900 Subject: [PATCH] add basic test --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 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..3eba09f --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: Python package + +on: [push, pull_request] + +jobs: + build: + + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Python 3.10 + uses: actions/setup-python@v2 + with: + python-version: "3.10" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + if [ -f requirements.txt ]; then pip install -r requirements.txt; fi + if [ -f setup.py ]; then pip install .; fi + - name: Install pytest + run: | + pip install pytest + - name: Run tests + run: | + pytest tests/