From 1057c282264185aa7a614fd0eb49809e64f1c754 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20=C5=81ada?= Date: Wed, 22 Feb 2023 13:54:05 +0100 Subject: [PATCH] Add monitoring unit tests workflow --- .github/workflows/unit-tests-monitoring.yml | 33 +++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 .github/workflows/unit-tests-monitoring.yml diff --git a/.github/workflows/unit-tests-monitoring.yml b/.github/workflows/unit-tests-monitoring.yml new file mode 100644 index 0000000..5fee05a --- /dev/null +++ b/.github/workflows/unit-tests-monitoring.yml @@ -0,0 +1,33 @@ +name: Monitoring tests + +on: + pull_request: + paths: + - "apps/monitoring/backend/**" + +jobs: + unit_test: + name: Unit tests + runs-on: ubuntu-latest + defaults: + run: + working-directory: apps/monitoring/backend + steps: + - uses: actions/checkout@v3 + - name: Install poetry + run: pipx install poetry + - name: Setup python + uses: actions/setup-python@v4 + with: + python-version: "3.10" + cache: poetry + - name: Install dependencies + run: poetry install + - name: Run unit tests + run: poetry run pytest + - name: Run black + run: poetry run black . + - name: Run ruff + run: poetry run ruff . + - name: Run mypy + run: poetry run mypy .