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 ad57878
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 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,20 +20,31 @@ 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: |
make build
pip install dist/gdown-*.tar.gz
pip install dist/gdown-*.whl
if [ '${{ matrix.os }}' = 'windows-latest' ]; then
pip install dist\gdown-*.tar.gz
pip install dist\gdown-*.whl
else
pip install dist/gdown-*.tar.gz
pip install dist/gdown-*.whl
fi

0 comments on commit ad57878

Please sign in to comment.