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 b7fdff6 commit a90abdf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 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,19 +20,26 @@ 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
shell: bash
run: |
make build
pip install dist/gdown-*.tar.gz
Expand Down

0 comments on commit a90abdf

Please sign in to comment.