Skip to content

Commit

Permalink
move MacOS jobs to schedule
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyburnett committed Sep 11, 2023
1 parent 8b181a1 commit 2dc2871
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,11 @@ jobs:
strategy:
fail-fast: false
matrix:
os: [ ubuntu-latest, macos-latest ]
python: [ "3.9", "3.10", "3.11" ]
os: [ ubuntu-latest ]
python: [ "3.7", "3.8", "3.9", "3.10", "3.11" ]
include:
- os: macos-latest
python: "3.11"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
Expand Down
38 changes: 38 additions & 0 deletions .github/workflows/ci_cron.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@

name: Weekly cron

on:
schedule:
# Weekly Monday 6AM build
- cron: "0 0 * * 1"
workflow_dispatch:

jobs:
test:
name: test (${{ matrix.os }}, Python ${{ matrix.python }})
needs: [ style ]
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
include:
- os: macos-latest
python: "3.7"
- os: macos-latest
python: "3.8"
- os: macos-latest
python: "3.9"
- os: macos-latest
python: "3.10"
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python }}
- uses: actions/cache@v3
with:
path: ${{ env.pythonLocation }}
key: test-${{ runner.os }}-${{ env.pythonLocation }}-${{ hashFiles('**/pyproject.toml', '**/setup.*') }}
- run: python -m pip install . pytest pytest-xdist
- run: pip freeze
- run: pytest -n auto

0 comments on commit 2dc2871

Please sign in to comment.