From 86d9f0882b6fe90df6814c92c2f4ff04dd3a9176 Mon Sep 17 00:00:00 2001 From: Juan Altmayer Pizzorno Date: Thu, 1 Feb 2024 17:13:00 -0500 Subject: [PATCH] - adding tests workflow; --- .github/workflows/tests.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/tests.yml 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