You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
diagrams/.github/workflows/test.yml

36 lines
811 B

name: Run tests
on:
push:
branches:
- master
paths:
- '.github/workflows/test.yml'
- '**.py'
pull_request:
branches:
- master
paths:
- '.github/workflows/test.yml'
- '**.py'
jobs:
test:
strategy:
matrix:
python: ['3.6', '3.7', '3.8']
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python }}
- name: Install poetry
run: curl -sSL https://raw.githubusercontent.com/python-poetry/poetry/master/get-poetry.py | python
- name: Install libraries
run: |
$HOME/.poetry/bin shell
$HOME/.poetry/bin install
- name: Run all tests
run: python -m unittest -v tests/*.py