From 54113064b6ae77cac3d801c36eef83ec02540e66 Mon Sep 17 00:00:00 2001 From: PuQing Date: Mon, 27 Nov 2023 18:01:25 +0800 Subject: [PATCH] Update build-frontend.yml and poetry-pytest.yml --- .github/workflows/build-frontend.yml | 9 ++++++++- .github/workflows/poetry-pytest.yml | 6 +++++- 2 files changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build-frontend.yml b/.github/workflows/build-frontend.yml index b9debd28..4e0e9081 100644 --- a/.github/workflows/build-frontend.yml +++ b/.github/workflows/build-frontend.yml @@ -1,6 +1,13 @@ name: Frontend Build & Lint -on: ["pull_request", "push"] +on: + push: + paths: + - 'neetbox/frontend/**' + pull_request: + paths: + - 'neetbox/frontend/**' + jobs: build: diff --git a/.github/workflows/poetry-pytest.yml b/.github/workflows/poetry-pytest.yml index eb0b29e9..132bc1d2 100644 --- a/.github/workflows/poetry-pytest.yml +++ b/.github/workflows/poetry-pytest.yml @@ -5,6 +5,10 @@ on: ["pull_request","push"] jobs: test: runs-on: ubuntu-latest + strategy: + max-parallel: 3 + matrix: + python-version: [3.9, 3.10, 3.11] steps: #---------------------------------------------- # check-out repo and set-up python @@ -15,7 +19,7 @@ jobs: id: setup-python uses: actions/setup-python@v4 with: - python-version: '3.8' + python-version: ${{ matrix.python-version }} #---------------------------------------------- # ----- install & configure poetry ----- #----------------------------------------------