36 lines
817 B
YAML
36 lines
817 B
YAML
---
|
|
|
|
name: Tests
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
tests:
|
|
name: 'Tests (pytest)'
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
python-version: ['3.7', '3.8', '3.9']
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
architecture: x64
|
|
|
|
- name: Install poetry
|
|
run: |
|
|
python -m pip install --upgrade pip
|
|
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python -
|
|
source $HOME/.poetry/env
|
|
poetry --version
|
|
|
|
- name: Run tests
|
|
run: |
|
|
source $HOME/.poetry/env
|
|
poetry run python --version
|
|
poetry install -v
|
|
poetry run pytest -s -vv --cov=padpo
|
|
|