From caf8bef74fa848ea4c1f342a61a030892e4d1044 Mon Sep 17 00:00:00 2001 From: Saeed Rasooli Date: Thu, 12 Oct 2023 22:45:36 +0330 Subject: [PATCH] update .github/workflows/test.yml --- .github/workflows/test.yml | 21 ++++++++++++++++----- 1 file changed, 16 insertions(+), 5 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 607dcb086..62998c3d4 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -2,9 +2,8 @@ name: "Test" on: push: - branches: [master] + branches: ["master", "github-action"] pull_request: - # The branches below must be a subset of the branches above schedule: - cron: "33 1 * * 3" @@ -16,12 +15,16 @@ jobs: fail-fast: false matrix: os: [ubuntu-latest] - # python-version: ["3.10", "3.11", "3.12"] + python-version: ["3.10", "3.11", "3.12"] runs-on: ${{ matrix.os }} steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} - name: cd and ls run: | cd ${{ github.workspace }} @@ -33,10 +36,18 @@ jobs: test-mac: name: Test on Mac OS + strategy: + fail-fast: false + matrix: + python-version: ["3.10", "3.11", "3.12"] runs-on: macos-latest steps: - name: Checkout - uses: actions/checkout@v3 + uses: actions/checkout@v4 + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} - name: cd and ls run: | cd ${{ github.workspace }}