Skip to content

Commit

Permalink
chore: add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
kenany committed Nov 14, 2024
1 parent fc2312c commit 6edb1e0
Show file tree
Hide file tree
Showing 3 changed files with 79 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @kenany
13 changes: 13 additions & 0 deletions .github/renovate.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
"extends": ["local>pangeacyber/.github:renovate-config"],
"automerge": true,
"automergeStrategy": "rebase",
"packageRules": [
{
"description": "Don't offer Python updates.",
"matchDepNames": ["python"],
"enabled": false
}
]
}
65 changes: 65 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
name: CI

on:
push:
branches:
- main

pull_request:
types:
- opened
- synchronize
- reopened
- ready_for_review

merge_group:

workflow_dispatch:

permissions:
contents: read

jobs:
mypy:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4.2.2

- name: Install uv
uses: astral-sh/setup-uv@v3.2.0
with:
enable-cache: true

- name: Setup Python
uses: actions/setup-python@v5.3.0
with:
python-version-file: .python-version

- name: Install dependencies
run: uv sync --all-extras --dev

- name: mypy
run: uv run mypy .

ruff:
runs-on: ubuntu-24.04
steps:
- name: Checkout code
uses: actions/checkout@v4.2.2

- name: Install uv
uses: astral-sh/setup-uv@v3.2.0
with:
enable-cache: true

- name: Setup Python
uses: actions/setup-python@v5.3.0
with:
python-version-file: .python-version

- name: Install dependencies
run: uv sync --all-extras --dev

- name: ruff
run: uv run ruff check --output-format=github .

0 comments on commit 6edb1e0

Please sign in to comment.