From 61170d5560f48b613d0998de02ea56784dfc4169 Mon Sep 17 00:00:00 2001 From: Johan Larsson Date: Wed, 29 Nov 2023 15:43:23 +0100 Subject: [PATCH] ci: add a build-and-test workflow --- .github/workflows/build-and-test.yaml | 28 +++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/build-and-test.yaml 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