Skip to content

Commit

Permalink
update .github/workflows/test.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Oct 12, 2023
1 parent 25cce62 commit caf8bef
Showing 1 changed file with 16 additions and 5 deletions.
21 changes: 16 additions & 5 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand All @@ -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 }}
Expand All @@ -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 }}
Expand Down

0 comments on commit caf8bef

Please sign in to comment.