Skip to content

Add github workflow of testing #1

Add github workflow of testing

Add github workflow of testing #1

name: Testing with unittest
on: [push]
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
python-version: ["3.10"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Install the package itself
run: |
pip install -e . --config-settings editable_mode=strict
- name: Test with unittest
run: |
python -m unittest discover -p "*_test.py"