Skip to content

feat: Add CI workflows for testing, code quality, and security scanning #1

feat: Add CI workflows for testing, code quality, and security scanning

feat: Add CI workflows for testing, code quality, and security scanning #1

Workflow file for this run

name: CI
on:
push:
branches: [ main, development ]
pull_request:
branches: [ main, development ]
permissions:
contents: read
jobs:
tests:
runs-on: ubuntu-latest
timeout-minutes: 20
strategy:
fail-fast: false
matrix:
python-version: [ '3.10', '3.11' ]
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Setup Python
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
cache: 'pip'
cache-dependency-path: requirements-dev.txt
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements-dev.txt
- name: Run pytest
run: pytest
- name: Upload coverage artifacts
if: always()
uses: actions/upload-artifact@v4
with:
name: coverage-${{ matrix.python-version }}
path: |
coverage.xml
htmlcov/