Skip to content

[pre-commit.ci] pre-commit autoupdate #71

[pre-commit.ci] pre-commit autoupdate

[pre-commit.ci] pre-commit autoupdate #71

Workflow file for this run

name: test
on: push
jobs:
pytest:
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
python-version: ["3.8"]
include:
- os: ubuntu-latest
python-version: "3.9"
- os: ubuntu-latest
python-version: "3.10"
- os: ubuntu-latest
python-version: "3.11"
- os: ubuntu-latest
python-version: "3.12"
runs-on: ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: pip install .[test]
- name: pytest
run: pytest
- name: Generate LCOV coverage report
run: coverage lcov
- name: Coveralls parallel upload
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage.lcov
flag-name: "OS: ${{ matrix.os }}, Python: ${{ matrix.python-version }}"
parallel: true
finish:
needs: pytest
runs-on: ubuntu-latest
steps:
- name: Coveralls finish
uses: coverallsapp/[email protected]
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
parallel-finished: true