Skip to content

build(deps): bump actions/upload-artifact from 4 to 6 #24

build(deps): bump actions/upload-artifact from 4 to 6

build(deps): bump actions/upload-artifact from 4 to 6 #24

Workflow file for this run

name: Tests
on:
push:
branches: [ main, develop ]
pull_request:
branches: [ main, develop ]
permissions:
contents: read
pull-requests: write
jobs:
test:
name: Test on Python ${{ matrix.python-version }}
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v6
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests with pytest
run: |
pytest tests/ -v --cov=. --cov-report=term-missing --cov-report=xml --cov-report=html
- name: Upload coverage reports
uses: actions/upload-artifact@v6
if: matrix.python-version == '3.9'
with:
name: coverage-reports
path: |
coverage.xml
htmlcov/
- name: Display coverage summary
if: matrix.python-version == '3.9'
run: |
echo "## Test Coverage Summary" >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
coverage report >> $GITHUB_STEP_SUMMARY
echo "\`\`\`" >> $GITHUB_STEP_SUMMARY
lint:
name: Code Quality Check
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v5
- name: Set up Python
uses: actions/setup-python@v6
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: Analyze code with pylint
run: |
pylint $(git ls-files '*.py') || true