Skip to content

Commit

Permalink
Merge pull request #116 from kbase/dev-add_workflows
Browse files Browse the repository at this point in the history
Add dependabot and CodeQL
  • Loading branch information
Xiangs18 authored Jun 13, 2024
2 parents 4fa0e19 + f0b944c commit 852313d
Show file tree
Hide file tree
Showing 3 changed files with 61 additions and 1 deletion.
23 changes: 23 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: 2
updates:

# Docker
- package-ecosystem: docker
directory: "/"
schedule:
interval: "monthly"
open-pull-requests-limit: 25

# Python
- package-ecosystem: "pip" # See documentation for possible values
directory: "/" # Location of package manifests
schedule:
interval: "monthly"
open-pull-requests-limit: 25

# GitHub Actions
- package-ecosystem: "github-actions"
directory: ".github/workflows"
schedule:
interval: "monthly"
open-pull-requests-limit: 25
38 changes: 38 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: "CodeQL"

on:
pull_request:
types:
- opened
- reopened
- synchronize
- ready_for_review
push:
# run workflow when merging to main or develop
branches:
- main
- master
- develop

jobs:
CodeQL-Build:
# CodeQL runs on ubuntu-latest, windows-latest, and macos-latest
runs-on: ubuntu-latest

permissions:
# required for all workflows
security-events: write

steps:
- name: Checkout repository
uses: actions/checkout@v4

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@v3
# Override language selection by uncommenting this and choosing your languages
with:
languages: python

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
1 change: 0 additions & 1 deletion .github/workflows/test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ jobs:
run: |
export HOMEDIR=`pwd`
export PYTHONPATH=$HOMEDIR/test:$HOMEDIR/lib:$PYTHONPATH
echo $PYTHONPATH
export HANDLE_SERVICE_TEST_CFG=$HOMEDIR/test.cfg
pytest --cov=lib/AbstractHandle --cov-report=xml test
Expand Down

0 comments on commit 852313d

Please sign in to comment.