31 lines
610 B
YAML
31 lines
610 B
YAML
---
|
|
|
|
name: Tests
|
|
|
|
on: [push, pull_request]
|
|
|
|
jobs:
|
|
tox:
|
|
name: 'Tests (tox/pytest)'
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: '3.9'
|
|
|
|
- name: Install tox and poetry
|
|
run: |
|
|
sudo apt-get update
|
|
sudo apt-get install tox
|
|
curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python3 -
|
|
source $HOME/.poetry/env
|
|
|
|
tox --version
|
|
poetry --version
|
|
|
|
- name: Run tox
|
|
run: poetry run tox
|
|
|