Skip to content

ibutsu-client-python tests #40

ibutsu-client-python tests

ibutsu-client-python tests #40

Workflow file for this run

name: ibutsu-client-python tests
on:
push:
branches:
- master
- main
pull_request:
types: ["opened", "synchronize", "reopened"]
create:
jobs:
test:
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13"]
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install hatch
- name: Install project with test dependencies
run: hatch env create
- name: Test with pytest and coverage
run: hatch run test:pytest test/ --cov=ibutsu_client --cov-report=term-missing --cov-report=xml --cov-report=html --cov-branch
- name: Upload coverage to Codecov
if: matrix.python-version == '3.12'
uses: codecov/codecov-action@v5
with:
file: ./coverage.xml
flags: unittests
name: codecov-umbrella
fail_ci_if_error: false
token: ${{ secrets.CODECOV_TOKEN }}