Skip to content

Commit

Permalink
Run CI on macOS as well
Browse files Browse the repository at this point in the history
  • Loading branch information
doshitan committed Dec 27, 2024
1 parent 98c85aa commit 5bbde8b
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 5 deletions.
14 changes: 12 additions & 2 deletions .github/workflows/ci-nix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,13 @@ jobs:
# pushed to the cache, no need for a bunch of jobs to build the same stuff in
# parallel when a new dependency is added for example
build:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]

name: Build
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -53,8 +58,13 @@ jobs:
run: nix develop --command bash -c "make test"

install:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]

name: Install
runs-on: ubuntu-latest
runs-on: ${{ matrix.os }}
needs: build

steps:
Expand Down
9 changes: 6 additions & 3 deletions .github/workflows/ci-pipx.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,14 @@ on:
python-version:
required: true
type: string
os:
required: true
type: string

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
runs-on: ${{ inputs.os }}

steps:
- uses: actions/checkout@v4
Expand All @@ -28,7 +31,7 @@ jobs:

test:
name: Test
runs-on: ubuntu-latest
runs-on: ${{ inputs.os }}

steps:
- uses: actions/checkout@v4
Expand All @@ -47,7 +50,7 @@ jobs:

install:
name: Install
runs-on: ubuntu-latest
runs-on: ${{ inputs.os }}

steps:
- uses: actions/checkout@v4
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/ci-py.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ jobs:
fail-fast: false
matrix:
python-version: ["3.11", "3.12", "3.13"]
os: ["macos-latest", "ubuntu-latest"]

uses: ./.github/workflows/ci-pipx.yml
with:
python-version: ${{ matrix.python-version }}
os: ${{ matrix.os }}

0 comments on commit 5bbde8b

Please sign in to comment.