diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml new file mode 100644 index 0000000..859b079 --- /dev/null +++ b/.github/workflows/test.yml @@ -0,0 +1,28 @@ +name: Python Unittest on Pull Request + +on: [push, pull_request] + +jobs: + test: + runs-on: ubuntu-latest + steps: + # Checkout the repository + - name: Checkout code + uses: actions/checkout@v4 + + # Set up Python environment + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: '3.10' + + # Install dependencies using pyproject.toml + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install . + + # Run unittests + - name: Run unittests + run: | + python -W ignore -m unittest discover