Skip to content

Commit

Permalink
[ci] Run tests also if QA checks fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhanus3133 authored Jul 23, 2024
1 parent a2c2ab3 commit cdae214
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,28 +39,26 @@ jobs:
with:
python-version: ${{ matrix.python-version }}

- name: Install python dependencies
- name: Install Dependencies
id: deps
run: |
pip install -U pip wheel setuptools
pip install -U -r requirements-test.txt
- name: Install npm dependencies
run: sudo npm install -g jshint stylelint

- name: Install openwisp-utils
run: |
sudo npm install -g jshint stylelint
pip install -e .[qa,rest,selenium]
pip install ${{ matrix.django-version }}
- name: QA checks
run: ./run-qa-checks

- name: Tests
if: ${{ !cancelled() && steps.deps.conclusion == 'success' }}
run: coverage run --source=openwisp_utils runtests.py
env:
SELENIUM_HEADLESS: 1

- name: Upload Coverage
if: ${{ success() }}
run: coveralls --service=github
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit cdae214

Please sign in to comment.