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 + + +