Skip to content

Commit

Permalink
Merge pull request #96 from GreenScheduler/test-on-mac
Browse files Browse the repository at this point in the history
Run tests on mac and python 3.12
  • Loading branch information
abhidg authored May 6, 2024
2 parents 110d391 + 1388ab7 commit 59e3668
Showing 1 changed file with 11 additions and 6 deletions.
17 changes: 11 additions & 6 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,29 +9,34 @@ on:
paths:
- '**.py'
- '.github/workflows/tests.yml'
- 'pyproject.toml'
pull_request:
branches: [ main ]
paths:
- '**.py'
- '.github/workflows/tests.yml'
workflow_dispatch:
- 'pyproject.toml'

jobs:
build:

runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11"]
python-version: ["3.9", "3.10", "3.11", "3.12"]
os: [ubuntu-latest, macos-latest]

runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
- name: Install dependencies
run: python3 -m pip install '.[test]'
run: |
python3 -m pip install --upgrade pip
python3 -m pip install '.[test]'
- name: Lint with flake8
run: |
python3 -m pip install flake8
Expand Down

0 comments on commit 59e3668

Please sign in to comment.