Skip to content

ADD: diverse tests for models #217

ADD: diverse tests for models

ADD: diverse tests for models #217

Workflow file for this run

name: Pull-Request CI
on: [pull_request]
jobs:
CI:
name: Launching 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: Run Pre commit hook (formatting, linting & tests)
run: pre-commit run --all-files --hook-stage pre-push --show-diff-on-failure
- name: Build coverage file
if: python-version == '3.10'

Check failure on line 29 in .github/workflows/pr_ci.yaml

View workflow run for this annotation

GitHub Actions / Pull-Request CI

Invalid workflow file

The workflow is not valid. .github/workflows/pr_ci.yaml (Line: 29, Col: 13): Unrecognized named-value: 'python-version'. Located at position 1 within expression: python-version == '3.10' .github/workflows/pr_ci.yaml (Line: 34, Col: 13): Unrecognized named-value: 'python-version'. Located at position 1 within expression: python-version == '3.10'
run: |
pytest --junitxml=pytest.xml --cov-report=term-missing:skip-covered --cov=choice_learn tests/ | tee pytest-coverage.txt
- name: Pytest coverage comment
if: python-version == '3.10'
uses: MishaKav/pytest-coverage-comment@main
with:
pytest-coverage-path: ./pytest-coverage.txt
junitxml-path: ./pytest.xml
unique-id-for-comment: ${{ matrix.python-version }}
title: 'Coverage Report for Python ${{ matrix.python-version }}'