Skip to content

gh-actions: bump github/codeql-action from 3 to 4 #43

gh-actions: bump github/codeql-action from 3 to 4

gh-actions: bump github/codeql-action from 3 to 4 #43

Workflow file for this run

name: CI + Security Check
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test-and-security:
name: Run Tests and CodeQL Security Check
runs-on: ubuntu-latest
permissions:
actions: read
contents: read
security-events: write
strategy:
matrix:
language: [python]
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: '3.10'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pytest pytest-cov codecov
- name: Run tests with coverage
env:
PYTHONPATH: .
run: |
pytest --cov --cov-branch --cov-report=xml
- name: Upload coverage reports to Codecov
uses: codecov/codecov-action@v5
with:
token: ${{ secrets.CODECOV_TOKEN }}
slug: SREEHARI-M-S/line-watch
- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: ${{ matrix.language }}
- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v4