ci: pre-commit autoupdate #498
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: CodeCov | |
on: [pull_request] | |
jobs: | |
code-coverage: | |
name: Create code coverage report | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v2 | |
- name: Install poetry | |
run: | | |
curl -O -sSL https://install.python-poetry.org/install-poetry.py | |
python install-poetry.py -y --version 1.3.2 | |
echo "PATH=${HOME}/.poetry/bin:${PATH}" >> $GITHUB_ENV | |
rm install-poetry.py | |
- name: Set up Python 3.10 | |
uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" | |
cache: "poetry" | |
- name: Install dependencies and project | |
run: | | |
poetry env use python3.10 | |
poetry install --with test | |
- name: Run tests and collect coverage | |
run: poetry run pytest --cov src/sk_transformers --cov-report term-missing --cov-report xml | |
- name: Upload coverage to Codecov | |
uses: codecov/codecov-action@v3 |