From a89c3dd49bc3f105a07a4e21f027181609385131 Mon Sep 17 00:00:00 2001 From: Roman Zlobin Date: Tue, 5 Mar 2024 02:42:58 +0300 Subject: [PATCH] add github workflow tests --- .github/workflows/test.yaml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test.yaml diff --git a/.github/workflows/test.yaml b/.github/workflows/test.yaml new file mode 100644 index 0000000..41190f1 --- /dev/null +++ b/.github/workflows/test.yaml @@ -0,0 +1,26 @@ +name: test + +on: + push: + branches: + - main + pull_request: + branches: + - main + +jobs: + run_tests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: set up python 3.8 + uses: actions/setup-python@v5 + with: + python-version: 3.8 + + - name: install dependencies + run: (cd services/bot && pip install -r requirements.txt) + + - name: run pytest + run: (cd services/bot && pytest test.py)