Skip to content

Commit ac0bcfc

Browse files
ci: run linting and testing in CI
1 parent b26b5a6 commit ac0bcfc

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

.github/workflows/ci.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
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: Install local package
15+
run: pip install .
16+
- name: Check black
17+
run: black --check oc4ids_datastore_api/ tests/
18+
- name: Check isort
19+
run: isort --check-only oc4ids_datastore_api/ tests/
20+
- name: Check flake8
21+
run: flake8 oc4ids_datastore_api/ tests/
22+
- name: Check mypy
23+
run: mypy oc4ids_datastore_api/ tests/
24+
- name: Run tests
25+
run: pytest

0 commit comments

Comments
 (0)