Skip to content

Commit

Permalink
Multiple workflow improvements (#52)
Browse files Browse the repository at this point in the history
* Multiple workflow improvements

* fix

* Add `.DS_Store` to `.gitignore`

* Update codeql.yml
  • Loading branch information
zliang-akamai authored Jan 6, 2025
1 parent e9b2e87 commit 16d3039
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 24 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/lint.yml → .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
name: Run Linter
name: Continuous Integration

on: [ push, pull_request ]

jobs:
lint:
test-and-lint:
runs-on: ubuntu-latest
steps:
- name: checkout repo
Expand All @@ -17,5 +17,8 @@ jobs:
- name: install dependencies
run: make deps

- name: run tests
run: make test

- name: run linter
run: make lint
run: make lint
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 Advanced"

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
schedule:
- cron: '0 13 * * 5'

jobs:
analyze:
name: Analyze (${{ matrix.language }})
runs-on: ubuntu-latest
permissions:
security-events: write

strategy:
fail-fast: false
matrix:
include:
- language: python
build-mode: none
steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Initialize CodeQL
uses: github/codeql-action/init@v3
with:
languages: ${{ matrix.language }}
build-mode: ${{ matrix.build-mode }}
queries: security-and-quality

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@v3
with:
category: "/language:${{matrix.language}}"
19 changes: 19 additions & 0 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Dependency review'
on:
pull_request:
branches: [ "main" ]

permissions:
contents: read
pull-requests: write

jobs:
dependency-review:
runs-on: ubuntu-latest
steps:
- name: 'Checkout repository'
uses: actions/checkout@v4
- name: 'Dependency Review'
uses: actions/dependency-review-action@v4
with:
comment-summary-in-pr: on-failure
21 changes: 0 additions & 21 deletions .github/workflows/test.yml

This file was deleted.

3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -136,3 +136,6 @@ dmypy.json

# Cython debug symbols
cython_debug/

# macOS
.DS_Store

0 comments on commit 16d3039

Please sign in to comment.