30 lines
812 B
YAML
30 lines
812 B
YAML
name: pytest
|
|
on: push
|
|
|
|
jobs:
|
|
ci:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: [3.9, 3.9.6]
|
|
poetry-version: [1.1.7]
|
|
os: [ubuntu-18.04, macos-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v2
|
|
- uses: actions/setup-python@v2
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Run image
|
|
uses: abatilo/actions-poetry@v2.0.0
|
|
with:
|
|
poetry-version: ${{ matrix.poetry-version }}
|
|
- name: poetry install
|
|
run: poetry install
|
|
- name: poetry run pytest and coverage
|
|
run: poetry run pytest --cov .
|
|
- name: Coveralls
|
|
uses: coverallsapp/github-action@master
|
|
with:
|
|
github-token: ${{ secrets.GITHUB_TOKEN }}
|
|
|