Files
starter-workflows/ci/python-package.yml
T

28 lines
610 B
YAML
Raw Normal View History

2019-07-29 09:38:23 -07:00
name: Python package
2019-08-06 16:37:30 -07:00
on: [push]
2019-07-29 09:38:23 -07:00
2019-08-06 16:37:30 -07:00
jobs:
2019-07-29 09:38:23 -07:00
build:
2019-08-06 16:37:30 -07:00
2019-07-29 09:38:23 -07:00
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [2.7, 3.5, 3.6, 3.7]
2019-08-06 16:37:30 -07:00
steps:
2019-07-29 09:38:23 -07:00
- uses: actions/checkout@master
- name: Set up Python ${{ matrix.python-version }}
2019-08-02 10:30:20 -04:00
uses: actions/setup-python@v1
2019-07-29 09:38:23 -07:00
with:
version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Test with pytest
run: |
pip install pytest
pytest