Skip to content

Fix importlib.metadata for py37 #46

Fix importlib.metadata for py37

Fix importlib.metadata for py37 #46

name: Send coverage report
on:
push:
branches:
- main
paths:
- handsdown/**
- tests/**
workflow_dispatch: {}
jobs:
coverage:
name: Coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python for Poetry
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install poetry
run: |
python -m pip install poetry pip
- name: Set up Python
id: python
uses: actions/setup-python@v4
with:
python-version: "3.11"
cache: "poetry"
- name: Install dependencies
run: |
poetry install -n
- name: Send coverage report
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: |
poetry run pytest --cov-report xml --cov handsdown
- name: Send coverage report
uses: codecov/codecov-action@v3
with:
token: ${{ secrets.CODECOV_TOKEN }}