mirror of
https://github.com/httpie/cli.git
synced 2024-11-29 03:03:44 +01:00
34 lines
898 B
YAML
34 lines
898 B
YAML
name: Python package
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ${{ matrix.os }}
|
|
strategy:
|
|
max-parallel: 4
|
|
matrix:
|
|
os: [ubuntu-latest, macOS-latest, windows-latest]
|
|
python-version: [3.6, 3.7]
|
|
steps:
|
|
- uses: actions/checkout@v1
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: upgrade pip
|
|
run: python -m pip install --upgrade pip
|
|
- name: install
|
|
run: make install
|
|
- name: test
|
|
run: make test
|
|
- name: pycodestyle
|
|
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7'
|
|
run: make pycodestyle
|
|
- name: coveralls
|
|
if: matrix.os == 'ubuntu-latest' && matrix.python-version == '3.7'
|
|
run: make coveralls
|
|
env:
|
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|
|
|