2020-12-04 07:46:06 +00:00
|
|
|
---
|
|
|
|
|
|
|
|
name: Tests
|
|
|
|
|
|
|
|
on: [push, pull_request]
|
|
|
|
|
|
|
|
jobs:
|
2020-12-04 08:19:52 +00:00
|
|
|
tests:
|
|
|
|
name: 'Tests (pytest)'
|
2020-12-04 07:46:06 +00:00
|
|
|
runs-on: ubuntu-latest
|
2020-12-04 08:19:52 +00:00
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
python-version: ['3.7', '3.8', '3.9']
|
2020-12-04 07:46:06 +00:00
|
|
|
steps:
|
|
|
|
- uses: actions/checkout@v2
|
2020-12-04 07:58:21 +00:00
|
|
|
|
|
|
|
- uses: actions/setup-python@v2
|
|
|
|
with:
|
2020-12-04 08:19:52 +00:00
|
|
|
python-version: ${{ matrix.python-version }}
|
|
|
|
architecture: x64
|
2020-12-04 07:58:21 +00:00
|
|
|
|
2020-12-04 08:19:52 +00:00
|
|
|
- name: Install poetry
|
2020-12-04 07:58:21 +00:00
|
|
|
run: |
|
2020-12-04 08:29:05 +00:00
|
|
|
python -m pip install --upgrade pip
|
2020-12-04 08:19:52 +00:00
|
|
|
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
|
2020-12-04 08:04:16 +00:00
|
|
|
source $HOME/.poetry/env
|
|
|
|
poetry --version
|
2020-12-04 07:58:21 +00:00
|
|
|
|
2020-12-04 08:19:52 +00:00
|
|
|
- name: Run tests
|
|
|
|
run: |
|
2020-12-04 08:22:40 +00:00
|
|
|
source $HOME/.poetry/env
|
2020-12-04 08:19:52 +00:00
|
|
|
poetry run python --version
|
|
|
|
poetry install -v
|
|
|
|
poetry run pytest -s -vv --cov=padpo
|
2020-12-04 07:46:06 +00:00
|
|
|
|