diff --git a/.github/workflows/python-package.yml b/.github/workflows/python-package.yml new file mode 100644 index 0000000..efb5aaf --- /dev/null +++ b/.github/workflows/python-package.yml @@ -0,0 +1,32 @@ +name: Python package + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + test: + + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: '3.8' # Specify the Python version you want to use + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -e . + pip install -e ".[tests]" + pip install -e ".[examples]" + + - name: Run tests + run: | + pytest