Merge pull request #111 from beaufour/dependabot/pip/coverage-7.6.8 #136
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: test | |
on: [push] | |
env: | |
PYTHON_KEYRING_BACKEND: keyring.backends.null.Keyring | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"] | |
poetry-version: ["1.8.1"] | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Python Poetry Action | |
uses: abatilo/actions-poetry@v3 | |
with: | |
poetry-version: ${{ matrix.poetry-version }} | |
- name: Set up Python ${{ matrix.python-version }} | |
uses: actions/setup-python@v5 | |
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@v4 | |
with: | |
name: code-coverage-report-${{ matrix.python-version }} | |
path: coverage | |
- name: Coveralls | |
uses: coverallsapp/github-action@master | |
with: | |
github-token: ${{ secrets.GITHUB_TOKEN }} |