31 lines
872 B
YAML
31 lines
872 B
YAML
name: pytest
|
|
on: push
|
|
|
|
jobs:
|
|
ci:
|
|
strategy:
|
|
fail-fast: false
|
|
matrix:
|
|
python-version: [3.10.8]
|
|
poetry-version: [1.2.2]
|
|
os: [ubuntu-latest, macos-latest, windows-latest]
|
|
runs-on: ${{ matrix.os }}
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: ${{ matrix.python-version }}
|
|
- name: Install poetry
|
|
uses: abatilo/actions-poetry@v2
|
|
with:
|
|
poetry-version: ${{ matrix.poetry-version }}
|
|
- name: Install dependencies
|
|
run: poetry install
|
|
- name: Pytest and Coverage
|
|
run: |
|
|
poetry run coverage run -m --source=stacosys pytest tests
|
|
poetry run coverage report
|
|
- name: Send report to Coveralls
|
|
run: poetry run coveralls
|
|
env:
|
|
COVERALLS_REPO_TOKEN: ${{ secrets.COVERALLS_REPO_TOKEN }}
|