Skip to content

Commit

Permalink
Run GitHub Actions on macOS, Ubuntu, and Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
wkentaro committed Feb 11, 2024
1 parent b213aba commit 349ae4b
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@ on:

jobs:
build:

runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: ["3.8", "3.12"]

steps:
Expand All @@ -20,17 +20,23 @@ jobs:
python-version: ${{ matrix.python-version }}
- uses: actions/checkout@v3

- name: Install Make
run: choco install make
if: matrix.os == 'windows-latest'

- name: Install main
run: |
pip install .[test]
- name: Lint
run: |
make lint
if: matrix.os != 'windows-latest'

- name: Test
run: |
make test
if: matrix.os == 'ubuntu-latest'

- name: Install from dist
run: |
Expand Down

0 comments on commit 349ae4b

Please sign in to comment.