Skip to content

Merge pull request #92 from beaufour/dependabot/pip/pre-commit-2.21.0 #86

Merge pull request #92 from beaufour/dependabot/pip/pre-commit-2.21.0

Merge pull request #92 from beaufour/dependabot/pip/pre-commit-2.21.0 #86

Workflow file for this run

name: test
on: [push]
env:
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11", "3.12"]
poetry-version: ["1.8.1"]
steps:
- uses: actions/checkout@v3
- name: Python Poetry Action
uses: abatilo/actions-poetry@v3.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version }}
cache: 'poetry'
- name: Install dependencies
run: |
poetry install --with dev,extras
- name: Run tests
run: |
poetry run coverage run -m pytest
poetry run coverage lcov -o coverage/lcov.info
poetry run coverage html -d coverage
- name: Archive code coverage results
uses: actions/upload-artifact@v3
with:
name: code-coverage-report
path: coverage
- name: Coveralls
uses: coverallsapp/github-action@master
with:
github-token: ${{ secrets.GITHUB_TOKEN }}