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