[pre-commit.ci] pre-commit autoupdate #1091
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: CI Python | |
on: | |
pull_request: | |
jobs: | |
lint: | |
name: Lint python | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Lint source code | |
uses: chartboost/ruff-action@v1 | |
test: | |
name: Test python | |
runs-on: ubuntu-22.04 | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
- name: Set up poetry | |
run: pipx install poetry | |
- name: Set up python | |
uses: actions/setup-python@v4 | |
with: | |
cache: poetry | |
architecture: x64 | |
python-version: '3.10' | |
- name: Install requirements | |
run: poetry install --only=test | |
- name: Test | |
run: | | |
poetry run pytest \ | |
--junitxml=pytest.xml \ | |
--cov-report=term-missing:skip-covered \ | |
--cov=pipelines tests | tee pytest-coverage.txt | |
- name: Report coverage | |
uses: MishaKav/pytest-coverage-comment@main | |
with: | |
hide-report: true | |
junitxml-path: ./pytest.xml | |
pytest-coverage-path: ./pytest-coverage.txt |