Skip to content

Commit 27d2c03

Browse files
ci: add lint and test checks
1 parent 31f9d64 commit 27d2c03

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

.github/workflows/ci.yml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: CI
2+
on: [push]
3+
4+
jobs:
5+
ci:
6+
runs-on: ubuntu-latest
7+
steps:
8+
- uses: actions/checkout@v4
9+
- uses: actions/setup-python@v5
10+
with:
11+
python-version: "3.12"
12+
- name: Install dev requirements
13+
run: pip install -r requirements_dev.txt
14+
- name: Check black
15+
run: black --check oc4ids_datastore_pipeline/
16+
- name: Check isort
17+
run: isort --check-only oc4ids_datastore_pipeline/
18+
- name: Check flake8
19+
run: flake8 oc4ids_datastore_pipeline/
20+
- name: Check mypy
21+
run: mypy oc4ids_datastore_pipeline/
22+
- name: Run tests
23+
run: pytest

0 commit comments

Comments
 (0)