diff --git a/.github/workflows/pr-main-ci.yml b/.github/workflows/pr-main-ci.yml new file mode 100644 index 0000000..0f48c14 --- /dev/null +++ b/.github/workflows/pr-main-ci.yml @@ -0,0 +1,30 @@ +name: PR Checks (main) + +on: + pull_request: + branches: + - main + +jobs: + test-and-build: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Set up Python + uses: actions/setup-python@v5 + with: + python-version: "3.12" + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + python -m pip install -e . build + + - name: Run tests via Makefile + run: make test + + - name: Build package via Makefile + run: make build diff --git a/.gitignore b/.gitignore index 05f029b..b7a512c 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,9 @@ dist/ # OS .DS_Store -.github +.github/* +!.github/workflows/ +!.github/workflows/*.yml # Coverage .coverage