36 lines
647 B
YAML
36 lines
647 B
YAML
name: test
|
|
|
|
on:
|
|
pull_request:
|
|
branches: [ master ]
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: [3.6, 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: |
|
|
pip3 install -e .
|
|
pip3 install pytest wheel
|
|
|
|
- name: Run tests
|
|
run: pytest tests
|
|
|
|
- name: Build
|
|
run: |
|
|
python3 setup.py sdist
|
|
python3 setup.py bdist_wheel
|