mirror of
https://github.com/wassname/pip-package-list.git
synced 2026-06-27 16:10:20 +08:00
39 lines
764 B
YAML
39 lines
764 B
YAML
name: test
|
|
|
|
on: [push]
|
|
|
|
jobs:
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: [3.7, 3.8]
|
|
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- name: Set up Python ${{ matrix.python-version }}
|
|
uses: actions/setup-python@v1
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
- name: Install dependencies
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
pip install .[test] .[analysis]
|
|
|
|
- name: Lint
|
|
run: |
|
|
python setup.py lint
|
|
|
|
- name: Validate formatting
|
|
run: |
|
|
python setup.py format_verify
|
|
python setup.py format_docstrings_verify
|
|
python setup.py sort_imports_verify
|
|
|
|
- name: Run tests
|
|
run: |
|
|
python setup.py test
|