Run GitHub Actions on macOS, Ubuntu, and Windows #506
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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", "3.12"] | |
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 | |
if: matrix.os == 'ubuntu-latest' | |
- name: Install from dist | |
shell: bash | |
run: | | |
make build | |
pip install dist/gdown-*.tar.gz | |
pip install dist/gdown-*.whl |