Skip to content

Commit

Permalink
CI: Split off lint as a separate job and add shellcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
kristapsk committed Jan 25, 2024
1 parent 2b960df commit eada741
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 2 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
name: Lint code

on: [push, pull_request]

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: Install flake8
run: pip install flake8
- name: Install shellcheck
run: sudo apt-get install shellcheck
- name: Lint code
run: ./test/lint/lint-all.sh
2 changes: 0 additions & 2 deletions .github/workflows/unittests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ jobs:
run: |
./install.sh --develop --with-qt
./jmvenv/bin/python -m pip install --upgrade pip
- name: Lint with flake8
run: source ./jmvenv/bin/activate && ./test/lint/lint-python.sh
- name: Cache bitcoind
uses: actions/cache@v3
env:
Expand Down

0 comments on commit eada741

Please sign in to comment.