Skip to content

Commit a37c605

Browse files
committed
CI linters
1 parent f3f8b50 commit a37c605

1 file changed

Lines changed: 13 additions & 2 deletions

File tree

.github/workflows/build.yml

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
- name: deps
1818
run: |
1919
sudo apt-get install -y $APT_DEPS
20-
pip3 install $PIP_DEPS
20+
sudo pip3 install --system $PIP_DEPS
2121
- name: build
2222
run: cmake -DCMAKE_BUILD_TYPE=${{ matrix.BUILD_TYPE }} -B build . && cmake --build build -j $(nproc)
2323
- name: test
@@ -32,7 +32,7 @@ jobs:
3232
- name: build loaders
3333
run: |
3434
sudo apt-get install -y $APT_DEPS
35-
pip3 install $PIP_DEPS
35+
sudo pip3 install --system $PIP_DEPS
3636
cmake -DCMAKE_BUILD_TYPE=Release -B build . && cmake --build build -j $(nproc)
3737
rm build/libgenomicsqlite.so
3838
sudo apt-get remove -y libzstd-dev # should be linked into libgenomicsqlite.so
@@ -44,3 +44,14 @@ jobs:
4444
with:
4545
name: GenomicSQLite-Linux-x86_64-so-${{ env.GIT_REVISION }}
4646
path: build/libgenomicsqlite.so
47+
48+
lint:
49+
runs-on: ubuntu-20.04
50+
steps:
51+
- uses: actions/checkout@v2
52+
- name: deps
53+
run: |
54+
sudo apt-get install -y clang-format cppcheck python3-pip
55+
sudo pip3 install --system pre-commit $PIP_DEPS black flake8 pylint
56+
- name: pre-commit
57+
run: pre-commit run --all-files

0 commit comments

Comments
 (0)