diff --git a/.github/workflows/build-and-test.yaml b/.github/workflows/build-and-test.yaml new file mode 100644 index 0000000..3090645 --- /dev/null +++ b/.github/workflows/build-and-test.yaml @@ -0,0 +1,28 @@ +name: Build and Test +on: [push, pull_request] + +jobs: + build-and-test: + runs-on: ubuntu-latest + strategy: + matrix: + python-version: [3.10] + steps: + - uses: actions/checkout@v4 + + - 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 + pip install pybind11 + pip install setuptools + + - name: Install + run: pip install . + + - name: Test + run: python -m unittest discover