From 692c8d3b62a45f039568c906cea315582827e874 Mon Sep 17 00:00:00 2001 From: ilevk Date: Mon, 6 May 2024 18:34:07 +0900 Subject: [PATCH] feat - add github action pytest workflow --- .github/workflows/ci_workflow.yaml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .github/workflows/ci_workflow.yaml diff --git a/.github/workflows/ci_workflow.yaml b/.github/workflows/ci_workflow.yaml new file mode 100644 index 0000000..31cd3a3 --- /dev/null +++ b/.github/workflows/ci_workflow.yaml @@ -0,0 +1,27 @@ +name: Python CI + +on: push + +jobs: + test: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: 3.11 + architecture: x64 + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install poetry + poetry install --no-root + + - name: Run tests with pytest + run: | + poetry run python -m pytest tests -s