From 57a46de82ea4f2ee5ebe19018a3465493275c80d Mon Sep 17 00:00:00 2001 From: Daniel Hjertholm <8713259+danhje@users.noreply.github.com> Date: Thu, 13 Jun 2024 11:31:23 +0200 Subject: [PATCH] Add workflow --- .github/workflows/test.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/test.yml diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..0bf8db9 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,26 @@ +name: tests + +on: [push, pull_request] +jobs: + tests: + strategy: + matrix: + os: [ubuntu-latest] + python: ['3.10', '3.11', '3.12'] + runs-on: ${{ matrix.os }} + steps: + - uses: actions/checkout@v2 + - uses: actions/setup-python@v2 + with: + python-version: ${{ matrix.python }} + - name: install poetry + run: | + python -m pip install --upgrade pip wheel pipx + python -m pipx install poetry + - name: install dependencies + run: poetry install + - name: run tests + run: poetry run pytest + - name: run linter + run: | + poetry run check