Skip to content

Commit

Permalink
ci: add a build-and-test workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
jolars committed Nov 29, 2023
1 parent 41d4836 commit 61170d5
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/build-and-test.yaml
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 61170d5

Please sign in to comment.