diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml new file mode 100644 index 0000000..8587e15 --- /dev/null +++ b/.github/workflows/tests.yml @@ -0,0 +1,34 @@ +name: tests + +on: + push: + paths: + - src/** + - test/** + + pull_request: + + workflow_dispatch: + +jobs: + run-tests: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ ubuntu-latest, macos-latest, windows-latest ] + python: [ '3.10', '3.11', '3.12' ] + + steps: + - uses: actions/checkout@v3 + + - uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python }} + + - name: install dependencies + run: | + python3 -m pip install pytest + python3 -m pip install -e . + + - name: run tests + run: python3 -m pytest