From 5761218268cdc29dc77f65fd8dda3ced69b68856 Mon Sep 17 00:00:00 2001 From: "Keto D. Zhang" Date: Wed, 3 Apr 2024 22:48:55 -0700 Subject: [PATCH] Add test CI for branch v2 --- .github/workflows/test.v2.yaml | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 .github/workflows/test.v2.yaml diff --git a/.github/workflows/test.v2.yaml b/.github/workflows/test.v2.yaml new file mode 100644 index 0000000..6b5567e --- /dev/null +++ b/.github/workflows/test.v2.yaml @@ -0,0 +1,31 @@ +name: CI test for v2 branch + +on: + push: + branches: ["v2"] + pull_request: + branches: ["v2"] + workflow_dispatch: + +jobs: + build: + + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + python-version: ["3.9", "3.10", "3.11", "3.12"] + + steps: + - uses: actions/checkout@v3 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v3 + with: + python-version: ${{ matrix.python-version }} + - name: Install Python dependencies + run: | + python -m pip install --upgrade pip + python -m pip install hatch + hatch env create + - name: Pytest + run: hatch run test