Skip to content

Support Windows and macOS in tests #519

Support Windows and macOS in tests

Support Windows and macOS in tests #519

Workflow file for this run

name: ci
on:
push:
branches:
- main
pull_request:
jobs:
build:
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: ["3.8"]
steps:
- uses: actions/setup-python@v4
with:
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
- name: Install from dist
shell: bash
run: |
make build
pip install dist/gdown-*.tar.gz
pip install dist/gdown-*.whl