From 89a5196d8f41666cd0bcd80f454f43decf393d31 Mon Sep 17 00:00:00 2001 From: "Kyle James Walker (he/him)" Date: Tue, 2 Jul 2024 14:15:56 -0700 Subject: [PATCH] Add PR Test Action --- .github/workflows/test-pr.yaml | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 .github/workflows/test-pr.yaml diff --git a/.github/workflows/test-pr.yaml b/.github/workflows/test-pr.yaml new file mode 100644 index 0000000..12a04be --- /dev/null +++ b/.github/workflows/test-pr.yaml @@ -0,0 +1,28 @@ +name: Python package + +on: + pull_request: + types: [opened, synchronize, reopened] + branches: [main] + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + matrix: + python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v4 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v5 + with: + python-version: ${{ matrix.python-version }} + + - name: Test + run: | + python -m pip install --upgrade pip + pip install -e ".[all]" + pytest