Skip to content

Commit

Permalink
Add unit tests cross-platform
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasht86 committed Jul 29, 2024
1 parent 73f5065 commit d747bb2
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/pyvespa-unit-tests.yml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit d747bb2

Please sign in to comment.