Skip to content

CMLDEV-974 Dependency refresh pep440 (#233) #453

CMLDEV-974 Dependency refresh pep440 (#233)

CMLDEV-974 Dependency refresh pep440 (#233) #453

Workflow file for this run

# basic workflow to run tests
name: CI
on:
# Trigger on pushes and pull requests to key branches.
push:
branches:
- main
- dev
pull_request:
branches:
- main
- dev
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
jobs:
build:
runs-on: ubuntu-latest
strategy:
matrix:
python-version:
- "3.10"
- "3.11"
- "3.12"
- "3.13"
- "3.14"
steps:
- uses: actions/checkout@v4
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r tests/requirements.txt
- name: Lint with ruff
run: |
ruff check --no-fix virl2_client/ tests/ conftest.py
ruff format --check virl2_client/ tests/ conftest.py
- name: Test with pytest and coverage
run: |
pytest -n auto --cov=virl2_client --cov-report=term-missing --cov-report=xml --cov-report=json
- name: Upload coverage reports
uses: actions/upload-artifact@v4
with:
name: coverage-py${{ matrix.python-version }}
path: |
coverage.xml
coverage.json