Skip to content

Commit

Permalink
ci(python): support make build for macOS, Ubuntu, Win
Browse files Browse the repository at this point in the history
  • Loading branch information
pplmx committed Aug 25, 2024
1 parent 721be13 commit a827f4d
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions template/py/{{cookiecutter.project_slug}}/.github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,34 @@ on:
workflow_dispatch:

jobs:
build:
runs-on: ubuntu-latest
build-and-test:
name: python-${{ matrix.os }}

strategy:
matrix:
os:
- ubuntu-latest
- windows-latest
- macos-latest

fail-fast: false

runs-on: ${{ matrix.os }}

steps:
- uses: actions/checkout@v4

- name: Set up uv
if: ${{ matrix.os == 'ubuntu-latest' || matrix.os == 'macos-latest' }}
run: curl -LsSf https://astral.sh/uv/install.sh | sh

- name: Set up uv
if: ${{ matrix.os == 'windows-latest' }}
run: irm https://astral.sh/uv/install.ps1 | iex
shell: powershell

- name: Build & Test
run: |
make init
make build
make test

0 comments on commit a827f4d

Please sign in to comment.