From a90abdf7865decc7eef32a59bbbd0abe6e299ba6 Mon Sep 17 00:00:00 2001 From: Kentaro Wada Date: Mon, 12 Feb 2024 00:02:18 +0900 Subject: [PATCH] Run GitHub Actions on macOS, Ubuntu, and Windows --- .github/workflows/ci.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 77105a19..46e26fc9 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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: @@ -20,6 +20,10 @@ 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] @@ -27,12 +31,15 @@ jobs: - name: Lint run: | make lint + if: matrix.os != 'windows-latest' - name: Test run: | make test + if: matrix.os == 'ubuntu-latest' - name: Install from dist + shell: bash run: | make build pip install dist/gdown-*.tar.gz