Skip to content

Commit 31f2b1d

Browse files
committed
Added CI
1 parent 9b4901c commit 31f2b1d

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
version: 2
3+
updates:
4+
- package-ecosystem: "github-actions"
5+
directory: "/"
6+
schedule:
7+
interval: "weekly"
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: pull request
2+
on:
3+
pull_request:
4+
push:
5+
branches: [ main ]
6+
jobs:
7+
python:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
11+
with:
12+
persist-credentials: false
13+
- name: Setup Python 3.12
14+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
15+
with:
16+
python-version: '3.12'
17+
- name: Install Requirements
18+
run:
19+
pip install -r requirements.txt
20+
- name: Pylint
21+
run:
22+
pylint circuit_breaker_validator/
23+
- name: Black
24+
run:
25+
black --check ./
26+
- name: Type Check (mypy)
27+
run: mypy circuit_breaker_validator --strict
28+
- name: Unit Tests
29+
run:
30+
python -m pytest tests/

0 commit comments

Comments
 (0)