From 3bc8116e937004db4ee2a46f8d33603ee6c945eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Diaz?= Date: Sun, 8 Mar 2026 11:56:50 +0100 Subject: [PATCH] Add new gh action --- .github/workflows/pr-main-ci.yml | 30 ++++++++++++++++++++++++++++++ .gitignore | 4 +++- 2 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/pr-main-ci.yml 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