Skip to content

Merge pull request #20 from cgahr/pre-commit-ci-update-config #71

Merge pull request #20 from cgahr/pre-commit-ci-update-config

Merge pull request #20 from cgahr/pre-commit-ci-update-config #71

Workflow file for this run

name: CI
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
test:
name: pytest
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10"]
coverage: [false]
include:
- python-version: "3.11"
coverage: true
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
pip install --upgrade pip
pip install -e ".[tests]"
- name: run pytest
run: pytest --cov-report=lcov
- name: Coveralls GitHub Action
uses: coverallsapp/github-action@v1
with:
path-to-lcov: "coverage.lcov"
if: ${{ matrix.coverage }}