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

32 lines
867 B
YAML

name: pytest
3 years ago
on: push
jobs:
ci:
strategy:
fail-fast: false
matrix:
2 years ago
python-version: [3.10.8]
poetry-version: [1.2.2]
os: [ubuntu-latest, macos-latest, windows-latest]
3 years ago
runs-on: ${{ matrix.os }}
steps:
2 years ago
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
2 years ago
with:
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2
2 years ago
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 }}