Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
31 changes: 31 additions & 0 deletions .github/workflows/code-quality.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Code quality

on:
push:
pull_request:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: code-quality-${{ github.ref }}
cancel-in-progress: true

jobs:
ruff:
name: Ruff
runs-on: ubuntu-latest

steps:
- name: Check out repository
uses: actions/checkout@v7

- name: Check for lint violations
uses: astral-sh/ruff-action@v4.1.0
with:
version: "0.16.0"
args: check --output-format=github

- name: Check formatting
run: ruff format --check --diff
39 changes: 39 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: CodeQL

on:
push:
branches: [main]
pull_request:
branches: [main]
schedule:
- cron: "23 3 * * 1"
workflow_dispatch:

permissions:
actions: read
contents: read
security-events: write

concurrency:
group: codeql-${{ github.ref }}
cancel-in-progress: true

jobs:
analyze:
name: Analyze Python
runs-on: ubuntu-latest
timeout-minutes: 15

steps:
- name: Check out repository
uses: actions/checkout@v7

- name: Initialize CodeQL
uses: github/codeql-action/init@v4
with:
languages: python
build-mode: none
queries: security-extended

- name: Analyze
uses: github/codeql-action/analyze@v4
12 changes: 10 additions & 2 deletions .github/workflows/python-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,14 @@ name: Python tests
on:
push:
pull_request:
workflow_dispatch:

permissions:
contents: read

concurrency:
group: python-tests-${{ github.ref }}
cancel-in-progress: true

jobs:
test:
Expand All @@ -15,10 +23,10 @@ jobs:

steps:
- name: Check out repository
uses: actions/checkout@v4
uses: actions/checkout@v7

- name: Set up Python
uses: actions/setup-python@v5
uses: actions/setup-python@v7
with:
python-version: ${{ matrix.python-version }}

Expand Down