From d747bb2fbee12e67cf2572f5600c5c770b968945 Mon Sep 17 00:00:00 2001 From: thomasht86 Date: Mon, 29 Jul 2024 10:19:25 +0200 Subject: [PATCH] Add unit tests cross-platform --- .github/workflows/pyvespa-unit-tests.yml | 30 ++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 .github/workflows/pyvespa-unit-tests.yml diff --git a/.github/workflows/pyvespa-unit-tests.yml b/.github/workflows/pyvespa-unit-tests.yml new file mode 100644 index 00000000..69ba675a --- /dev/null +++ b/.github/workflows/pyvespa-unit-tests.yml @@ -0,0 +1,30 @@ +name: Unit tests - cross-platform + +on: + workflow_dispatch: + push: + branches: + - thomasht86/some-tests-to-github-action + +jobs: + test: + runs-on: ${{ matrix.os }} + strategy: + matrix: + os: [ubuntu-latest, windows-latest, macos-12, macos-14] + python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e .[dev] + - name: Run tests + run: | + pytest tests/unit -s -v