Skip to content

Merge pull request #189 from iterorganization/ci/rtd-fail-on-warning #1280

Merge pull request #189 from iterorganization/ci/rtd-fail-on-warning

Merge pull request #189 from iterorganization/ci/rtd-fail-on-warning #1280

Workflow file for this run

name: CI
on:
push:
branches: [main, develop]
pull_request:
types: [opened, synchronize, reopened]
jobs:
linting:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[linting]
- name: Run Ruff linter
run: |
ruff check --output-format=github waveform_editor tests
- name: Run Ruff formatter
run: |
ruff format --diff waveform_editor tests
pytest:
runs-on: ubuntu-latest
needs: linting
strategy:
matrix:
python-version: ['3.10', '3.11']
steps:
- name: Checkout code
uses: actions/checkout@v7
- name: Set up Python
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[test]
- name: Run tests
run: |
python -m pytest -n=auto --cov=waveform_editor --cov-report=term-missing --cov-report=html --junit-xml=junit-${{ matrix.python-version }}.xml
- name: Upload coverage report
uses: actions/upload-artifact@v7
with:
name: coverage-report-${{ matrix.python-version }}
path: htmlcov