From eada741d7342404b0bd1658336f09267191d704d Mon Sep 17 00:00:00 2001 From: Kristaps Kaupe Date: Sat, 31 Dec 2022 09:29:18 +0200 Subject: [PATCH] CI: Split off lint as a separate job and add shellcheck --- .github/workflows/lint.yml | 18 ++++++++++++++++++ .github/workflows/unittests.yml | 2 -- 2 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/lint.yml diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml new file mode 100644 index 000000000..d25fd0ad2 --- /dev/null +++ b/.github/workflows/lint.yml @@ -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 diff --git a/.github/workflows/unittests.yml b/.github/workflows/unittests.yml index 60ba31238..8d031322b 100644 --- a/.github/workflows/unittests.yml +++ b/.github/workflows/unittests.yml @@ -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: