Skip to content

[pre-commit.ci] pre-commit autoupdate (#178) #243

[pre-commit.ci] pre-commit autoupdate (#178)

[pre-commit.ci] pre-commit autoupdate (#178) #243

Workflow file for this run

name: Build
on:
push:
branches:
- main # Run on pushes to main
pull_request: # Run on pull requests
jobs:
CI:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ['3.9', '3.10', '3.11', '3.12']
steps:
- uses: actions/checkout@v2
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v2
with:
python-version: ${{ matrix.python-version }}
- name: Install requirements
run: |
python -m pip install --upgrade pip
pip install -r requirements-developer.txt
- name: Build coverage file
run: |
pytest -n auto --junitxml=pytest.xml --cov-report=term-missing --cov=choice_learn tests/ | tee pytest-coverage.txt
- name: Pytest coverage comment
uses: VincentAuriau/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml
issue-number: ${{ github.event.pull_request.number || '101' }}
unique-id-for-comment: ${{ matrix.python-version }}
title: 'Coverage Report for Python ${{ matrix.python-version }}'