Skip to content

Update python-unittests.yml #4

Update python-unittests.yml

Update python-unittests.yml #4

name: Python Unit Tests
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.10', 3.11, 3.12]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
- name: Upgrade pip
run: python -m pip install --upgrade pip
- name: Install the package in editable mode
run: pip install -e .
- name: Run unittest
run: |
python -m unittest discover -s tests