From db4a1caadd7d2b8ec2868b1619bc05ba12d594ee Mon Sep 17 00:00:00 2001 From: Mifeet Date: Sun, 8 Dec 2024 12:26:50 +0000 Subject: [PATCH] Unit tests --- .github/workflows/tests.yaml | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/tests.yaml diff --git a/.github/workflows/tests.yaml b/.github/workflows/tests.yaml new file mode 100644 index 0000000..1a9650d --- /dev/null +++ b/.github/workflows/tests.yaml @@ -0,0 +1,30 @@ +name: Tests & type check +on: + push: + branches: [main] + pull_request: + +jobs: + tests: + name: 'Unit tests' + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.10' + + - name: Install dependencies + run: | + pipx install poetry + poetry install --no-interaction + + - name: Run tests + run: | + poetry run pytest + + +