From 32f190a1fb5d2b544f0f07dfc23a95a3b3275f26 Mon Sep 17 00:00:00 2001 From: Yasuhisa Yoshida Date: Sun, 17 Sep 2023 16:24:08 +0900 Subject: [PATCH] run pytest on github actions --- .github/workflows/tests.yml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/tests.yml diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..d039ea6 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,30 @@ +name: Tests + +on: + - push + - pull_request + +jobs: + tests: + name: Run pytest + runs-on: ubuntu-latest + steps: + - name: Check out the repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v3 + with: + python-version: "3.10" + + - name: Upgrade pip + run: | + pip install --constraint=.github/workflows/constraints.txt pip + pip --version + + - name: Install Poetry + run: | + pip install --constraint=.github/workflows/constraints.txt poetry + poetry --version + poetry install + poetry run python -m pytest