mirror of
https://github.com/wassname/pip-package-list.git
synced 2026-06-27 16:10:20 +08:00
Add github workflow
This commit is contained in:
@@ -0,0 +1,38 @@
|
||||
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
|
||||
Reference in New Issue
Block a user